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: oldfashioned style: (sm-vertical-no-flyout) required

Home Forums Older releases 1.0.x oldfashioned style: (sm-vertical-no-flyout) required Reply To: oldfashioned style: (sm-vertical-no-flyout) required



I am not sure why you would need to use the script for such a basic functionality (that could actually be achieved easily without any JS at all) but here is something that should work as intended:

$(function() {
	var $menu = $('#main-menu');
		subMenusSubOffsetX: 1,
		subMenusSubOffsetY: -8,
		markCurrentItem: true,
		noMouseOver: true,
		hideOnClick: false
	// show current sub menu on init
	$menu.smartmenus('itemActivate', $menu.find('a.current').eq(-1));
	// prevent activating any items
	$menu.bind('activate.smapi', function() { return false; });

Please let me know if you have any troubles.