Home Forums Basel support forum Hide filter if it's not a category request

Hide filter if it's not a category request

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14375

    webaits
    Participant

    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

    #14386

    Artem Temos
    Keymaster

    Hi,

    Unfortunately, there is no such feature in our theme yet.

    Regards

    #14398

    webaits
    Participant

    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

    #14403

    Artem Temos
    Keymaster

    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

Viewing 4 posts - 1 through 4 (of 4 total)