Forums › Forums › Search & Filter Pro › The reset button is always there
- This topic has 5 replies, 2 voices, and was last updated 4 years, 2 months ago by Trevor.
-
Anonymous(Private) September 16, 2020 at 11:57 am #259641
http://64.227.66.199/shop-2/
We don’t want this reset button where there is no filter selected.Anonymous(Private) September 16, 2020 at 8:58 pm #259815Please see on top
Best sellersCurrent exhibition, ©Astrup Fearnley Museet Books Accessories Design Jewellery Gift ideas Kids NewPosters Sale
is the search filterThe 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(Private) September 17, 2020 at 6:13 am #259839Ah. 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’.
-
AuthorPosts