Hide filter if it's not a category request
-
Hi,
Is there any function or option available to hide a particular filter widget (say Size) if the ajax/initial request is not for a category?
If you go to this page https://www.handicraft-palace.com/store/ You can see FILTER BY SIZE. I need to show this filter only when it’s a category request and hide else where.
Thanks
Hi,
Unfortunately, there is no such feature in our theme yet.
Regards
Hi
I have checked the ajax response and it seems that the html for whole page main content is sent by server including filters. Can you give me any clue in any theme file where I can check if it’s category request and hide/show filter by adding class in html element.
Thanks
Hi,
There is no place only for this request. It returns default page based on standard WooCommerce templates. What exactly do you want to edit? Are you talking about filter widget? Then it is a inc/widgets/class-widget-layered-nav.php
Regards