Nirvana theme – sub menu not visible
-
Hi I’m developing a new website using the nirvana theme, I’m also using Max Mega Menu plugin but I can’t see the sub menus. I’ve tried with other themes and the sub menus work just fine. Are there any known issue of compatibility with this theme?
-
thank you very much! BTW awesome plugin!!!
Shell I past that function in the child theme functions? because i tried and it gives me a critical error. on the else.
Since the mega menu plugin was active, I tried to comment the whole else (else /** */ ) the critical error disappeared but the sub menus didn’t appear…Hi anton,
I’ve just double checked the instructions and they’re working OK for me.
Maybe it was a copy and paste error (sometimes the double quotes will be converted to curly ones). Maybe try copying/pasting from here:
<?php if( function_exists('max_mega_menu_is_enabled') && max_mega_menu_is_enabled('primary') ): ?> <?php wp_nav_menu(array('theme_location' => 'primary')); ?> <?php else: ?> <nav id="access" role="navigation"> <?php cryout_access_hook();?> </nav><!-- #access --> <?php endif; ?>Regards,
TomHi Tom,
Where do you past this? in the child theme functions?
Regards,
AntonHi Anton,
Nope. Follow this guide:
https://www.megamenu.com/documentation/nirvana/
But instead of copying and pasting the code from that page, copy and paste it from my reply above.
Regards,
TomDoes this change remain when i update the theme?
Hi Anton,
No, you would need to copy the header.php file to your child theme for the changes to ‘stick’.
Regards,
TomOK perfect thank you very much!
Regards,
Anton
The topic ‘Nirvana theme – sub menu not visible’ is closed to new replies.