Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

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

#2698
admin
Keymaster

Sorry for the late reply! Although, it’s a bit difficult to test it right away, I guess this is caused by Respond.js which most probably applies the desktop styles in IE8 after the domready event. So, I would suggest to just exclude IE7/8 like this:

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

This means that the menu will not be expanded just for IE7/8 mobile users (if there are any of those at all nowadays).