Home › Forums › Luzuk › LZ Fashion Ecommerce › Menu opens and closes › Reply To: Menu opens and closes
December 23, 2018 at 6:11 pm
#1354
kennetheknes
Participant
I didn’t find anything in the section-featured.php file, but I managed to fix the problem. In navigation.js I changed this code:
$(document).ready(function(){
$(“.product-cat”).hide();
$(“button”).click(function(){
$(“.product-cat”).toggle();
});
});
to this:
$(document).ready(function(){
$(“.product-cat”).hide();
$(“.product-btn”).click(function(){
$(“.product-cat”).toggle();
});
});
That way the .click function only targets the ALL CATEGORY button and not every button object.