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.

Re: display menu associated with current page

Home Forums Older releases 0.9.x display menu associated with current page Re: display menu associated with current page

#1775
admin
Keymaster

Make sure this line:

$("#dk-main-menu").smartmenus("itemActivate", $("#dk-main-menu").find("a.current").eq( - 1));

is called on document ready – e.g. put it right after this:

		$('#dk-main-menu').smartmenus({
			subMenusSubOffsetX: 1,
			subMenusSubOffsetY: -8,
			markCurrentItem: true,
			markCurrentTree: true,
			hideOnClick: false
		});

and it should work.

Cheers!