• See a couple sample URLs which are WooCommerce product category pages:

    https://danscartoons.com/cartoon-category/computer
    https://danscartoons.com/cartoon-category/construction

    I have another 63 more similar pages and I added a description for each page which unfortunately does not appear. To make it appear, can I add this:
    ———————————-
    //Display product category descriptions under category image/title on woocommerce shop page */

    add_action( ‘woocommerce_after_subcategory_title’, ‘my_add_cat_description’, 12);
    function my_add_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>’;
    }
    ———————————-

    to “functions.php”? Will the description appear then?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Can you test another theme and see if it appears? It may be suppressed/not supported in this case.

    Thread Starter Danno1

    (@danno1)

    Hi Mike: Unfortunately I have no other sites that I’ve launched which are running other themes, so I cannot test it. I am a bit gobsmacked as to how wordpress has set this limitation against it’s users. Especially if I have one of the most updated versions, not to mention they promote WooCommerce as one of thee top e-commerce platforms, yet we as users have no way of getting our respective descriptions to appear on each page. I have tried searching tutorials and see “custom fields” available as to where users were able to create those for specific categories but it seems as wp updates itself, it has phased out this functionality. I will keep searching. Thanks alot!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    I’m really not sure what you mean – I think its just your theme not handling it. If I test on 2012 theme for example, descriptions are in place.

    It is easy to switch theme to check this.

    Thread Starter Danno1

    (@danno1)

    Is there a current way to verify which theme I use in WordPress? This might sound like an obviously ignorant question….I do have WooCommerce theme on my site but……..

    Thread Starter Danno1

    (@danno1)

    Or, let me ask this…will my site break, if adding that above code into my “functions.php”? If it doesn’t help, I could delete it

    mother.of.code

    (@imazed)

    The Mother of Code

    Hey there!

    Testing which theme is currently active can be done through the admin dashboard (try visiting yourdomain.com/wp-admin) and then in the left-hand menu go to Appearance > Theme. This will tell you what theme is currently active. If you want to test if this theme is causing problems, install and activate the Twenty Sixteen theme.

    As for your last question: there is no real way of knowing. I recommend making a backup of your file before adding anything to it, so you can always restore if the snippet breaks your site.

    Hope that helps!

    -Ines

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My WC category discriptions for each page are not visible – will code help?’ is closed to new replies.