add & remove class wpc-opened
-
Hello
Kindly note that I customized the filter everything plugin to the following
https://allbrandsfactoryoutlet.com/new/product-category/2-women/
but I have problem when I click to the filter button the content section opened but it’s not close when I click outside the box so I added the following code to fix this issue<script> jQuery(document).on('click', 'body', function(e) { if (!$(e.target).is('.wpc-filter-title button')) $('.wpc-filters-section').removeClass('wpc-opened') .addClass('wpc-closed'); }); </script>it’s working fine but it’s not covered all the button it’s working when you click up of the arrow could you please help me to fix it ?
Best regards
Rawaf
The topic ‘add & remove class wpc-opened’ is closed to new replies.