Reply To: Vertical menu expanded on page load

Home Forums Older releases 0.9.x Vertical menu expanded on page load Reply To: Vertical menu expanded on page load

#2335
admin
Keymaster

Yep, you can achieve it by using the following mod:

$(function() {
	$('#main-menu').bind('activate.smapi', function(e, item) {
		var $deepestCurrent = $('#main-menu a.current').eq(-1);
		if ($(item).is('#main-menu > li > a.current') && item != $deepestCurrent[0]) {
			setTimeout(function() { $('#main-menu').smartmenus('itemActivate', $deepestCurrent); });
		}
	});
});

Let me know if you have any troubles.

Register

You will be emailed a link to set your password.

Login

Lost password?