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
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.