Hide Categories on specific pages.
-
Hello.
In the onlineshop that I am designing we have: Shop / Categories / Subcategories / Sub-Subcategories
In the shop we want to show categories, in the categories we want to show subcategories and in the subcategories we want to show products (not sub-subcategories).
To achieve this, we have chosen: Appearance -> Customize -> WooCommerce -> Product catalog -> Category display -> Show categories & Products.
Next, we have placed a code to hide the products from the Categories pages.
Now, in the subcategory pages we want to hide the sub-subcategories and show only products, but we don’t know how to do it.
Any solution?
Thank you
Hello,
First of all thanks for choosing our Theme, we are glad to be you in the WoodMart WordPress family :)
Sorry but there is no option in Theme Settings for that because the shop page is controlled by Woocommerce and our theme doesn’t influence.
And the settings from the Appearance >> Customize works the same for all the categories.
Sorry, but we could not provide you with the code that is beyond our limitations and support policy.
Best Regards.
And is there no way to hide that with css? When we tried to hide the category columns, the products did not fit on the screen. And that is due to your Product Grid.
Attachments:
You must be
logged in to view attached files.
Hello,
I saw the screenshot you attached.
Sorry but is not possible with CSS as well because the products and the categories are displayed with a loop and they could not be hidden separately.
It seems that the issue is caused by the code you added please remove the code then clear cache and check back.
Best Regards.