Jump to content

Archived

This topic is now archived and is closed to further replies.

mp6mo

Third Level Naigation Menu for Mobile Menu

Recommended Posts

mp6mo    0
mp6mo

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.svschottjena.de/wpprev/?pldebug=1

 

Thansk a lot

 

Michael

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mp6mo    0
mp6mo

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

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×