Reset Filter Button doesn’t work properly
-
Hi there, I was hoping someone can help me with applying a link to refresh the page when selecting the ‘reset filters’ button. At the moment the reset button only clears the filters selected but doesn’t refresh the page so that it clears the url and resets to the total amount of listings found. We find this confusing that the reset filter button doesn’t reset the listings number total as well. So, the support team have provided me with the php that controls the reset filter button and said to change the class name to create an anchor link? Thing is I’m not a coder and this is a bit out of my comfort zone, so I was hoping some kind soul that can code will see this post and help me? Here is the php code:
if ( ! defined( 'ABSPATH' ) ) exit; ?> <div class="directorist-advanced-filter__action directorist-flex directorist-justify-content-end"> <?php if ( $searchform->has_apply_filters_button ): ?> <button type="submit" class="directorist-btn directorist-btn-sm directorist-btn-dark"><?php echo esc_html( $searchform->apply_filters_text ); ?></button> <?php endif; ?> </div>All I want to do is add the link to that page as the reset filters button link, so that the page refreshes and then the listing total also goes back to its correct and original total. The support team say it’s out of their scope of help, so if anyone knows how to do this, I’d be most grateful. The website is a charity site and I’ve been working on it for free, so I can’t expect them to pay out for customisation development either. So I’m a bit stuck. 🙁
Thanks in advance, if anyone can help! Or point me in the right direction! 🙂
The page I need help with: [log in to see the link]
The topic ‘Reset Filter Button doesn’t work properly’ is closed to new replies.