Please post a link to your site and I’ll take a look 🙂
Have you clicked “Enable” in the mega menu settings?
(the big red box on this screenshot: https://maxmegamenu.com/wp-content/uploads/2015/03/megamenu-after-install.png )
Regards
Tom
Thread Starter
svsdnb
(@svsdnb)
Yes, and then enabled via the widget icon next to each top line item for the nav.
Hmm, looking at the CSS that max mega menu has generated, its enabled for the ‘header menu’ location.
But looking at the HTML on your page, it seems like the page is outputting the ‘main menu’ location.
Do you have 2 menu locations listed on the menu page? ( https://maxmegamenu.com/wp-content/uploads/2015/03/megamenu-theme-locations.png )
Thread Starter
svsdnb
(@svsdnb)
Main Menu is the name of my menu which is assigned to my Header Menu location which is my only menu location currently.
Where you have this code in your theme (probably in functions.php):
register_nav_menu( 'my_menu_location', ..... );
Please check the location in the wp_nav_menu call (probably in header.php) file matches up exactly:
wp_nav_menu( array( 'theme_location' => 'my_menu_location' ) );
Thread Starter
svsdnb
(@svsdnb)
it’s just <?php wp_nav_menu (); ?> per WordPress codex.
Ah, I’m pretty sure that’ll be the problem then.
You’ll need to register a theme location (in your case it will be called something like header_nav) using register_nav_menu, then output the menu using wp_nav_menu (including the theme_location argument set to ‘header_nav’).
Regards,
Tom
Thread Starter
svsdnb
(@svsdnb)
I changed it as you suggested and that made it worse. Now it’s showing every page on my site.
Thread Starter
svsdnb
(@svsdnb)
this obviously doesn’t work and like I said I wish it did but it doesn’t.
Ok then it you just need to modify the wp_nav_menu call to use that location.
Did you tag your menu to the location on the menu page? If not it will just show all pages by default.
Thread Starter
svsdnb
(@svsdnb)
I did and i’m back where I started. Yes. I did that from the start.
Thread Starter
svsdnb
(@svsdnb)
It’s ok. I uninstalled your plugin. Thank you for your time.