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.

display menu associated with current page

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1394
    jgarappolo
    Participant

    I have vertical menus where the submenus expands in-line. When I click on a submenu and go to the page I would like for the submenu associated with the current page to automatically expand and be highlighted.

    #1771
    admin
    Keymaster

    Please check this topic and let me know if you still have any questions:

    http://www.smartmenus.org/forums/topic/vertical-menu-expanded-on-page-load

    #1774
    jgarappolo
    Participant

    Thanks for getting back to me. I tried this and can’t seem to get it to work. I’m sure the fix is simple. The URL is http://www.doubleknot.com.

    #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!

    #1779
    jgarappolo
    Participant

    Very much appreciated. Works great

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.