Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1206559
    tashitendrel
    Participant

    Hello,

    is there a way to show category name under each post exactly the way tags are displayed?
    thank you

    དབུ་མ་དྭགས་བརྒྱུད་གྲུབ་ཤིང་གི་བསྡུས་དོན།

    #1206712
    Paul R
    Moderator

    Hi,

    To achieve that create file _content-post-footer.php in wp-content/themes/x-child/framework/views/integrity
    and copy the code below into that file.

    
    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_CONTENT-POST-FOOTER.PHP
    // -----------------------------------------------------------------------------
    // Standard <footer> output for various posts.
    // =============================================================================
    
    ?>
    
    <?php if ( has_tag() ) : ?>
      <footer class="entry-footer cf">
        <?php echo get_the_tag_list(); ?>
        <?php echo get_the_category_list(); ?>
      </footer>
    <?php endif; ?>
    

    Then add this in Custom > Edit Global CSS in the customizer.

    
    .entry-footer .post-categories {
        clear: both;
        display: block;
        margin-left: 0;
    }
    
    .entry-footer .post-categories li {
            float: left;
        list-style-type: none;
    }
    

    Hope that helps.

    #1207661
    tashitendrel
    Participant

    Hi, I did it. But this way not only entry footer, but also the whole footer disappeared… Please have a look: http://dharmaebooks.org/ཚད་མའི་སྤྱི་དོན་འཇམ་དབ/

    #1207805
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! It seems that there are some error on the page. This is why the whole footer did not display anything. You might have added an invalid code. Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue?

    To do this, you can make a post with the following info:
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1208026
    tashitendrel
    Participant
    This reply has been marked as private.
    #1208056
    Thai
    Moderator

    Hi There,

    I’ve just fixed the issue.

    Please change the custom CSS to this:

    .entry-footer .post-categories {
        clear: both;
        display: block;
        margin-left: 0;
    }
    .entry-footer .post-categories li {
        float: none;
        list-style-type: none;
        display: inline-block;
    }

    Regards!

    #1208087
    tashitendrel
    Participant

    Looks good. thank you for all your help.

    #1208098
    Thai
    Moderator

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1206559 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>