How do I display the category description on post category page?

Home Support Forums Mercury How do I display the category description on post category page?

This topic contains 5 replies, has 2 voices, and was last updated by  Michael 10 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7315

    Phat Chuong
    Participant

    How do I display the category description on post category page?

    #7316

    Michael
    Keymaster

    Hello,

    Mercury theme does not have this function.

    But you can do this using this code in the category template:
    <?php echo category_description(); ?>

    #7325

    Phat Chuong
    Participant

    Hi Michael,

    Thank you for your responding.

    I’m not familiar with the coding. Could you please in detail. What and where is the file that I need to modify?

    Thank you.

    #7326

    Michael
    Keymaster

    Hi,

    In the file category.php, do so https://d.pr/FREE/sT3ywQ

    code:

    <div class="space-left-content">
    <p><?php echo category_description(); ?></p>
    </div>
    #7340

    Phat Chuong
    Participant

    Hi Michael,

    Thank you very much for you introduction.

    I followed your introduction and here is the result: https://www.screencast.com/t/z1MUZ5ikNhK2

    On this screen, I would like to remove the space (1) and move the category to below (2). I think it should better let visitor know the post title firstly.

    Can you guide me please?

    Thanks,

    #7343

    Michael
    Keymaster

    Hi,

    In this case, please use the additional services https://space-themes.com/services/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.