PHP [SOLVED]: Hide WooCommerce specific sub-category in single product pages list output

PHP [SOLVED]: Hide WooCommerce specific sub-category in single product pages list output

Home Forums Scripting PHP Tutorials PHP [SOLVED]: Hide WooCommerce specific sub-category in single product pages list output

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #245550

    Cloudy Point
    Keymaster

    QuestionQuestion

    On WooCommerce single product pages, under the add to cart button displays the product category list.

    In my website I have 2 product categories named “In Ground Hoops”, so it is getting displayed twice because it is a main category and a sub-category.

    How can I hide this sub-category from being displayed there?

    I can’t target it with CSS and the woocommerce_template_single_meta hook is all or nothing from what I can find.

    Any ideas on where to start and/or how to do it would be appreciated.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.