Skip to content

Instantly share code, notes, and snippets.

@djrmom
Last active January 24, 2021 08:20
Show Gist options
  • Save djrmom/2a626ea7b39707b49e5167312e72a49a to your computer and use it in GitHub Desktop.
Save djrmom/2a626ea7b39707b49e5167312e72a49a to your computer and use it in GitHub Desktop.
facetwp reset button in elementor
<!--
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