• Resolved akisp

    (@akisp)


    Is there a way to have the 1st menu item expanded on load?

    i.e.
    World->
    -Africa->
    -America->
    -Asia->
    -Australia->
    -Europe->

    If I have my first menu item (World), I want to be expanded so everyone can see all sub-menu items.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi akisp,

    It sounds like maybe what you really want is just to pit a title (“World”) above your menu where the top level items are the continents.

    Depending on how you have your menu set up, does the “Expand Current Submenu” setting do what you need? If not, this is something I could look at adding a setting for in the future.

    Best,

    Chris

    Thread Starter akisp

    (@akisp)

    Hi sevenspark,

    no, the “Expand Current Submenu” does not meet my needs.
    I have Categories:
    Parent category: World
    Sub-categories: Africa, America, Asia etc.

    On Frontpage I have the menu on a sidebar, and it would be nice to have it expanded rather than showing only the first menu item (World).

    So, yes this can be a feature request… But, in the meantime if you have a code snippet to share I would have been grateful.

    cheers

    Plugin Author sevenspark

    (@sevenspark)

    Hi akisp,

    So what I’ll do is in the next version, I’ll expose the open_submenu javascript function. Then you can just write something like

    jQuery( '.bellows' ).bellows( 'open_submenu' , jQuery( '#menu-item-XX' ) );

    I’ll look at adding an ‘open submenu by default’ setting to the menu item settings – but since that’s a menu item setting, it’d be available in the Pro version.

    For an immediate solution, you could just force it with something like

    jQuery( '#menu-item-XX' ).addClass( 'bellows-active' ).find( '> .bellows-submenu' ).slideDown();

    Hope that helps,

    Chris

    • This reply was modified 9 years, 8 months ago by sevenspark.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Expand the 1st menu item’ is closed to new replies.