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)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?