Last active
January 24, 2021 08:20
-
-
Save djrmom/2a626ea7b39707b49e5167312e72a49a to your computer and use it in GitHub Desktop.
facetwp reset button in elementor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Add elmentor button widget | |
Use link to # | |
Set class in advanced to .facetwp-reset-btn https://d.pr/i/b05YIM | |
Add following js, it can be added in an elementor html code widget (https://d.pr/i/Lat8Z4) | |
if you don't have a theme/plugin setting or custom code you are using | |
--> | |
<script> | |
(function($) { | |
$(document).on('click', '.facetwp-reset-btn', function(e) { | |
e.preventDefault(); | |
FWP.reset(); | |
}); | |
})(jQuery); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment