Add product category values in the category page (1 post)

  1. tatygrassini
    Posted 3 years ago #

    Trying to apply the Isotope js plugin in the category page for the products grid. Say in the Shoes category you have items with "boots" and "sandals" sub-categories and want to filter them with a little menu on top.

    In order to make it work I'll need to inject css classes into the list items, next to the "first" and "last" classes.

    I know changes should be applied in the content-product.php file. Adding post_class( ); gives me everything except what I'm after... Yeah, standard WP classes but no categories, no tags, no variation values...

    This will be my dream:

    <li class="first shoes boots">

    I'm really struggling with this and I don't know where to start


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic