How To Add Text To WooCommerce Category Page

by toivo
2 replies
  • |
I have about 63 separate WooCommerce category pages that I would like to add separate descriptive text to. Here is a sample page. See the screenshot and in the area I have highlighted with the red box, will WooCommerce / Wordpress allow this? I DO NOT want to use anymore plugins that necessary....I rely too much on them and enough is enough concerning plugins. If I do this adding 'custom fields', how would I accomplish this? Guidance would be appreciated......let me know. My current version of WP is 4.5.3
#add #category #page #text #woocommerce
Avatar of Unregistered
  • Hello Toivo,

    In order to Add Text to WooCommerce Category page, please follow the steps :

    1. Visit Dashbord
    2. scroll down and Visit products section
    3. Click on Categories
    3. Click on Edit option under to "Testing Categories"
    4. Now add separate descriptive for the products in "Description box" and click on "UPDATE".

    Hope it helps.
    {{ DiscussionBoard.errors[10794765].message }}
  • Profile picture of the author littleArtemis
    Hi there, I think you can check function file in Your Theme and add this code below at the end

    if ( ! function_exists( 'plt_show_cat_description' ) ) {
    add_action( 'woocommerce_after_subcategory_title', 'plt_show_cat_description', 12);
    function plt_show_cat_description ($category) {
    $cat_id = $category->term_id;
    $prod_term = get_term($cat_id, 'product_cat');
    $description = $prod_term->description;
    echo '<div class="shop_cat_desc">'.$description.'</div>';
    Hope it helps.
    {{ DiscussionBoard.errors[11214780].message }}
Avatar of Unregistered

Trending Topics