Auto expand responsive menu not working

Hi,

I’ve added the code:

(function($){
$(window).on(‘load’, function(){
$(’#x-btn-navbar’).trigger(‘click’);
});
})(jQuery);

But the responsive menu isn’t auto expanding.

https://stage-chamanisme.com/

cheers,
Toan

Hi Toan,

Thank you for writing in, please update your JS code to this:

(function($){
	$(window).on('load', function(){
		$('.x-btn-navbar').trigger('click touch');
	});
})(jQuery);

Please keep in mind that we do not support customization like this, further customization would ultimately be your responsibility to take it from here.

Cheers!

1 Like

Hi Friech,

I have added the code, however the menu isn’t auto expanding. I still need to press on the burger icon to expand the menu.

Cheers,
Toan

Hi Toan,

You can try this code instead.

jQuery(function($) {
   $('.x-btn-navbar').click();
});

Hope that helps

1 Like

Hi Paul,
That’d worked!!

Thank you!

Glad we could help,

Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.