Menu2Panel

Is it possible to make a "parent" menu item (i.e. the top level menu item under which any sub menu items sit) not link to an article but automatically 'slide' the to the 2nd level of navigation?

I can achieve the desired effect by making the parent menu item a "text separator" but that messes up my menu on the desktop version

Is there a segment of code I can adjust to create the desired effect?

Many thanks
9 years 1 month ago #1 by Ant

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Hi could you tell me what type of layout you use? Is it the default one or DL menu
9 years 1 month ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Thanks for getting back, it's the default version I'm using.
9 years 1 month ago #3 by Ant

Please Log in or Create an account to join the conversation.

Is there a segment of code I can edit in mod_menu2panel > tmpl > default.php?

Thanks
9 years 1 month ago #4 by Ant

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
How about to just hiding the separator menu on the destop display using css?

li.divider {
display:none;}
@media max-width: 480px {
li.divider {
display:block;}
}
9 years 1 month ago #5 by TemplatePlazza

Please Log in or Create an account to join the conversation.

When make the "menu item type" is set as a text separator the parent menu link already disappears from the desktop menu?

Ideally what I would like to achieve is that when the viewing the mobile version (and using the menu2panel menu) that the parent link uses the href="#menu-s0" (as it would if the menu item type were a text separator) rather than href="article-title-goes-here"

Is there a way of adjusting the menu2panel code so that parent items only use href="#menu-s0"
9 years 1 month ago #6 by Ant

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum