Keeping the menu opened?

Home Forums Older releases 1.0.x Keeping the menu opened?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3205
    stobi_de
    Participant

    Hello!
    I started with this smartmenu some weeks ago. Maybe my question is a stupid one.

    I have a menu with 4 main topics and each with 6-8 submenus.
    Normal is: when I click on a submenu, the new page appears and the menu is closed again.

    What I need in Smartphone-mode: the submenu has another color and stays openend on the loaded page. The user has to see in the menu, where he is.

    Is that possible?

    Sorry for my bad english, I should refresh it!

    Frank

    #3211
    stobi_de
    Participant

    Hm, no answer….

    This is not possible!?

    #3227
    admin
    Keymaster

    You could use the markCurrentItem: true option and also some additional JS like this:

    $(window).load(function() {
    	var $menu = $('#main-menu'),
    		obj = $menu.data('smartmenus');
    	// show current sub menu if menu is collapsible
    	if (obj.isCollapsible()) {
    		$menu.smartmenus('itemActivate', $menu.find('a.current').eq(-1));
    	}
    });
    #3231
    stobi_de
    Participant

    Ha!!!!
    THANKS !!!!!!

    Greetings from Gummersbach
    frank

Viewing 4 posts - 1 through 4 (of 4 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?