Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro The reset button is always there

Viewing 6 posts - 1 through 6 (of 6 total)
  • Veronique Svarstad
    #259641

    http://64.227.66.199/shop-2/
    We don’t want this reset button where there is no filter selected.

    Trevor Moderator
    #259686

    I understand, and it is a good idea. Where on the page is the Search & Filter form? I would need to see it to know whether it can be done using code, as there is no plugin UI option to do this.

    Veronique Svarstad
    #259815

    Please see on top
    Best sellersCurrent exhibition, ©Astrup Fearnley Museet Books Accessories Design Jewellery Gift ideas Kids NewPosters Sale
    is the search filter

    The reset button is always there. No filter is selected then why its showing the reset button. please check carefully and let us know the solution.

    Trevor Moderator
    #259821

    This?

    https://www.screencast.com/t/EXR9yQQLi

    That is not one of our forms.

    Veronique Svarstad
    #259823

    I’ve customized its style mate. Its from your plugin. I can give you backend access to check

    Trevor Moderator
    #259839

    Ah. I guess it works, but I suspect it would not in ajax mode?

    If you have access to the PHP template file that is the one that outputs the while loop (inside the products container), you could add some PHP and use that to include some CSS to hide the reset button, like this:

    <?php
    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1234)->current_query();
    if (!($sf_current_query->get_search_term()=="") { <?
    <style>
    .woof_submit_search_form_container {display: none;}
    </style>
    <?php } ?>

    Note: you would need to change the ID number, and it looks like you don’t have a search box, so this should work.

    BTW, I think you need to add style like this also (generally):

    .woof_redraw_zone {display: flex;}

    This will stop content from below bleeding on to the ‘menu/form’.

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

You must be logged in to reply to this topic.