• Hey, I added some texts to my category description, But the theme doesn’t show description on the site category,

    How can I fix it?

    • This topic was modified 4 years, 3 months ago by saeed451.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @saeed451 !
    which theme are u using?

    Thread Starter saeed451

    (@saeed451)

    Moderator bcworkz

    (@bcworkz)

    The help we can provide here for commercial themes is very limited. For detailed help you should seek support through the theme’s dedicated support channel.

    I can tell you that code needs to be added to the appropriate template for the category description to be displayed. Something like <?php echo category_description(); ?>. This only works for a category archive listing. In other situations you must pass the ID of the category term you want a description of.

    Thread Starter saeed451

    (@saeed451)

    @bcworkz Thanks

    Should I add this code to functions.php?

    Moderator bcworkz

    (@bcworkz)

    No, you’d need a filter or action hook to put code on functions.php. We’ve no way of knowing if that’s possible or not with your theme, hence why you were referred to the theme’s support channel. They’d have a better idea than anyone.

    If your theme has a category.php template, you could try placing the offered code in a promising looking location. If not, you need to identify the actual template used and use conditional code to only output the description if the queried object is a category term.

    Hi @saeed451 !
    I can do editing on Theme code, If you can WhatsApp me the WP-ADMIN access.
    https://wa.me/916238269374

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Category Description’ is closed to new replies.