Jump to content


Photo

Third Level Naigation Menu for Mobile Menu


  • Please log in to reply
3 replies to this topic

#1 mp6mo

mp6mo

    Newbie

  • Members
  • Pip
  • 2 posts
  • Country: Country Flag

Posted 06 May 2014 - 07:21 AM

Hi at all,

 

my first time at this forum. Thanks a lot for this framework, great to use for wordpress. I'm using a Navigation on my site with three levels - so actually the third level is missing in the mobile menu. Are there any workarounds to update the mobile.menu.php to show a third level or more? Please excuse my english speling.

 

This is the page:  http://www.svschottjena.de/wpprev/

This is for debug: http://www.svschottj...prev/?pldebug=1

 

Thansk a lot

 

Michael



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16526 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 06 May 2014 - 11:28 AM

Hi Michael,

 

Unfortunately, the mobile navigation doesn't support grandchild functionality.

 

What you can do is use the options in Layout & Nav and the Primary option is generally used for your sites more important links such as Blog/News, About us, Contact us etc.. Whereas the Secondary option is generally aimed at your less important navigation links such as child menu items or grandchild menu items. You can even create a WordPress menu just for your mobile menu.



#3 mp6mo

mp6mo

    Newbie

  • Members
  • Pip
  • 2 posts
  • Country: Country Flag

Posted 19 May 2014 - 12:17 PM

Hi Danny,

 

sorry for late replay but i solved myself and it worked.

 

Just added: 

 

$menu3 = ( pl_setting( 'third_navigation_menu' ) ) ? pl_setting( 'third_navigation_menu' ) : false;

 

and:

 

if ( is_array( wp_get_nav_menu_items( $menu3 ) ) ) {
 
wp_nav_menu(
array(
'menu_class' => 'mobile-menu third-menu',
'menu' => $menu3,
'container' => null,
'container_class' => '',
'depth' => 1,
'fallback_cb' => ''
)
);
 
 
and now i have all 3 levels in mobile menu.
 
Best wishes
 
Michael


#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 16526 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 20 May 2014 - 08:26 AM

Happy to hear you have resolved your issue, but please be aware that we do not recommend editing the core files nor support it. Also, when a DMS update is available, this will remove your changes.

 

If the code you have changed is from a section.php file only, then I would recommend you create a child theme and add that section to your child themes section folder. Thus creating a child section, then edit the files in there. This will prevent DMS from replacing your code upon an update.

 

You can use my child theme - http://dannyholt.github.io/skeleton/