How to show / Display Category Description Under Category Pages in Estore theme

Home Forums eStore Free How to show / Display Category Description Under Category Pages in Estore theme

This topic contains 10 replies, has 3 voices, and was last updated by  amandainjames 2 months, 1 week ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1452780

    agrikendra2014
    Participant

    Hi,
    i would like to show / display category description in category pages in estore theme. Could you please help me?

    #1457507

    Rajesh
    Moderator

    Hi @agrikendra2014,

    Are you talking about showing the post category description in a category page? If so, you can go to the Posts > Categories in the dashboard. Insert the description there and Update. It will be shown in the category page.

    Thanks.

    #1457796

    agrikendra2014
    Participant

    Hi sir, am talking about product category description. Whatever we give in description box under category, it’s not displaying in category pages. Could u plz help?

    #1458872

    Rajesh
    Moderator

    Hi @agrikendra2014,

    Can you provide us with URL to your site so that we can inspect it and give you a proper solution? Can you also specify under which category you have inserted the description?

    Thanks.

    #1458935

    agrikendra2014
    Participant
    This reply has been marked as private.
    #1459241

    Rajesh
    Moderator

    Hi @agrikendra2014,

    It seems you have disabled the page-header in the site. As the category description is also shown in the page header section, it is not being displayed. For showing the Page description in the page header, can you go to the Appearance > Customize > Additional CSS in the dashboard and insert the code mentioned below:

    .page-header {
        display: block;
    }

    Thanks.

    #1464188

    agrikendra2014
    Participant
    This reply has been marked as private.
    #1465475

    Rajesh
    Moderator

    Hi @agrikendra2014,

    You can see below the Abtec, the product category description is being shown. It is being shown in the Page Header as shown in the image below:

    View post on imgur.com

    Thanks.

    #1467168

    agrikendra2014
    Participant
    This reply has been marked as private.
    #1472604

    Rajesh
    Moderator

    Hi @agrikendra2014,

    For the feature you mentioned, we will discuss this with our development team and if approved this feature will be available in the next version of the theme.

    Thanks.

    #1828947

    amandainjames
    Participant

    To display product category description yu have to out this code in functions.php

    add_shortcode('wpblog_cat', 'wpblog_cat_des');
    add_filter('widget_text', 'do_shortcode');
    
    function wpblog_cat_des() {
    $demo = '<ul>';
       $listcat = get_terms( 'category' );
       if ( ! empty( $listcat ) ) {
       foreach ( $listcat as $key => $item ) {
         $demo .= '<li>'. $item->description . '</li>';
       }
       }
       $demo .= '</ul>';
    return $demo;
    }

    If you still having issues showing category description then you can follow this tutorial https://www.wpblog.com/display-category-description-wordpress/

    • This reply was modified 2 months, 1 week ago by  amandainjames.
Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.