5

Visibility option to check if current archive page IS a subcategory, or if it HAS subcategories

new
June 18, 2024

I\’m building a WooCommerce category archive. If a certain category has subcategories, I want to show a section with a different background color and a heading, but if there are no subcategories, that section should be hidden.

Also, if the current archive page IS a subcategory, it should have a different design from the main category.

One response to “Visibility option to check if current archive page IS a subcategory, or if it HAS subcategories”

  1. Balazs Stotz Avatar
    Balazs Stotz

    I think if custom conditions were available, this would also possible: https://shop.greenshiftwp.com/request/visibility-custom-coded-conditions/

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest Voters