Site logo

[Resolved] Displaying the description of a product category

Home Forums Support [Resolved] Displaying the description of a product category

Home Forums Support Displaying the description of a product category

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1701356
    Arkadiusz

    Good day!

    In the Merch theme, the basic description of a product category is not visible on the front of the product category page. However, it is visible in the website code, which can be treated as Black SEO (showing different content to users and other Google robots). It should be visible at the front because that’s its role.

    This description is visible on the main page of the Shop, under the thumbnails of the product categories. It acts as a excerpt here. It is enough if the description has a few sentences and it looks bad. But it’s not about looks, it’s not the right place to describe a product category.

    In my opinion, this is a mistake of the creators of the theme and I do not know how to deal with it without the participation of the developer.

    Best regards to the community.

    #1701575
    David
    Staff
    Customer Support

    Hi there,

    go to Customizer > Additional CSS and remove this CSS:

    .tax-product_cat .woocommerce-products-header {
        display: none;
    }
    #1701610
    Arkadiusz

    David
    Thank you, the description on the category page is visible.
    Please tell me how to remove this description on the Shop website. Contrary to the class name “woocommerce-product-details__short-description” he is not short, he is full. Of course we can’t use display: none.

    #1701968
    David
    Staff
    Customer Support

    Try adding this PHP Snippet:

    
    add_action( 'after_setup_theme', function() {
        remove_action( 'woocommerce_after_subcategory_title', 'generatepress_wc_category_description', 12 );
    } );
    

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1745581
    Arkadiusz

    Hello David
    However, this method does not work. I still have category descriptions on the store page. I still can’t use long category descriptions.

    #1746241
    David
    Staff
    Customer Support
    #1927571
    Arkadiusz

    Hello David
    This code is not working. I added a child theme in function.php or via Code Snippet.
    However, this method does not work. I still have category descriptions on the store page.
    I still can’t use long category descriptions.
    Best regards

    #1928167
    Elvin
    Staff
    Customer Support

    Hi there,

    Have you tried removing the short description through the customizer settings?

    Go to Appearance > Customize > Layout > WooCommerce and uncheck “Display short description” as shown here – https://share.getcloudapp.com/mXuKGAmj

    #1928391
    Arkadiusz

    Hello Elvin

    Thank you for your answer.

    Unchecking this option works, it means it turns off the description on the store’s website.

    But the short description here is handy. Is good.

    The problem is that when this option is turned on, the FULL description is displayed. A SHORT would be ok. In the description of the category, I cannot select a part of the description.

    #1928418
    Elvin
    Staff
    Customer Support

    I just read through the plugin codes and tested the fields themselves and the “display short description” displays the text that is added on this field on product creation – https://share.getcloudapp.com/DOuBKoO7

    This should be the same case with your site. 🙂

    Can you recheck this field on your product if the text placed on this field is the actual text meant for short description?

    #1928431
    Arkadiusz

    Hello
    We deal with product category descriptions, not product descriptions!

    #1928467
    Elvin
    Staff
    Customer Support

    Hello
    We deal with product category descriptions, not product descriptions!

    It also applies to the category descriptions on the listing. They share the same setting.

    In the case of product taxonomy archive, there is NO short description because by default, the only field for the product category description is the one indicated here – https://share.getcloudapp.com/Wnu06B6D

    That’s actually what the GP Premium pulls for categories as shown on this code – https://share.getcloudapp.com/12uvkolw

    #1928492
    Arkadiusz

    Ok, thank you.

    #1928508
    Elvin
    Staff
    Customer Support

    No problem. 😀

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.