Filter & Clear buttons resulting in duplicate elements on the page

[ad_1]

I’m working on a custom theme and using your plugin for Woocommerce product filtering. I’m running into a slight problem when on mobile. I’ve added a show/hide button to display the filter on mobile, but if I show the filter and then click either the Filter or Clear buttons, my show/hide button gets duplicated. So if a user does some filtering for products they could end up with 3 or 4 identical buttons on the page.

I’m not sure why this is happening. I’ve trawled through my own Javascript and I don’t think it’s anything to do with my own code. Do you have any pointers as to how I can stop this happening?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer