Reply To: Expand the menu to current site on page load for mobile view only

Home Forums Older releases 1.0.x Expand the menu to current site on page load for mobile view only Reply To: Expand the menu to current site on page load for mobile view only

#2689
admin
Keymaster

Hi, glad you like the script! 🙂

You could use something like this ondomready instead:

var $mainMenu = $('#main-menu'),
	smObj = $mainMenu.data('smartmenus');
if (smObj.isCollapsible()) {
	$mainMenu.smartmenus('itemActivate', $mainMenu.find('a.current').eq(-1));
}

Cheers!

Register

You will be emailed a link to set your password.

Login

Lost password?