Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1409299

    Hi Support,

    Under Appearance > Customise > WooCommerce > Product Catalogue > Category display, I have set this to “Show products” but for a particular product category, I would like it to show subcategories. Is there a way to override this in the functions.php file?

    I can check if the product category is equal to something, but not sure how to change the output:

    function override_category_display_setting() {
        $category_slug = 'brands'; // Replace with the slug of your product category
        
        if (is_product_category($category_slug)) {
            
        }
    }

    Hope you can help.
    Thanks
    Sean

    #1409554

    Hey MotiveAgency,
    Thank you for your patience, the setting at Appearance ▸ Customise ▸ WooCommerce ▸ Product Catalogue ▸ Category display are global and you are not able to select specifically for each category.
    Instead go to Products ▸ Categories and edit each category under Display type
    Enfold_Support_2259.jpeg

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.