What can we help you with?
Home › Forums › Themes Support › How to make Product Categories not auto open on Homepage
Response time up to 1 business day.
Tagged: vertical menu
Hi all customer,
If you are using Header like this demo: https://demo.harutheme.com/pangja/home-2/
The Vertical Menu Product Categories will auto show on Homepage. You can disable it follow these steps:
if ( $('body').hasClass('home') || $('body').hasClass('vertical-menu') ) { $('#vertical-menu-wrap').show(); }
if ( !$('body').hasClass('home') ) { $(document).on('click', function(e) { var container = $(".vertical-menu-wrap"); if (!container.is(e.target) && container.has(e.target).length === 0) { $('#vertical-menu-wrap').hide(); } }); } else { $('#vertical-menu-wrap').show(); }
You must be logged in to reply to this topic.