Tagged: categories, category display, product category, products
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
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
Best regards,
Mike