• kawebb

    (@kawebb)


    Hi!

    I just installed the plugin and activated it. I have enabled the plugin on my main menu and added Mega menu Grid Layout on the first menu item, but it still shows a normal drop down menu. What can be the problem?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Kawebb,

    Thanks for posting a link. It looks like a custom theme, so I suspect the way you’re outputting the menu is not quite right for what we need. Can you try following this guide?

    https://www.megamenu.com/documentation/manual-php/

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Hi!

    Thanks for the guide! I followed the steps but now the menu doesn’t show up at all. You can see that at the url of the website that i sent you.

    The code I used for outputting the menu is this one:

    <?php wp_nav_menu( array( 'theme_location' => 'max_mega_menu_1' ) ); ?>

    Plugin Author megamenu

    (@megamenu)

    Hi kawebb,

    Do you have a menu assigned to the new location you’ve created? (id: max_mega_menu_1)

    Usually you’d use the location registered by your theme, who normally use IDs along the lines of primary, main etc.

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Hi!

    Yes I have a menu that is called Main Menu that is assigned to the menu location I created. I’ve also enabled MMM on the new menu location. It doesn’t seem to output any code in <nav>.

    Plugin Author megamenu

    (@megamenu)

    Ok, that’s odd ??

    Can you add some text above and below where the menu should be. Eg:

    <h1>before menu</h1>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘max_mega_menu_1’ ) ); ?>
    <h1>after menu</h1>

    Does “before menu” and “after menu” get output on the front end?

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Hi!

    Yes the h1:s are showing. And when I edit the menu and hover a menu item it says “Mega menu” so it seems to be activated.

    Plugin Author megamenu

    (@megamenu)

    Hi kawebb,

    Can you paste the code that you removed from the theme? I.e. the code that was originally responsible for outputting the menu.

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Here it is:

                            <?php
                            wp_nav_menu( array(
                            'menu' 			 => 'Main menu',
                            'depth'          => 3,
                            'container'      => true,
                            'menu_class'     => 'navbar-nav w-100 d-flex flex-row',
                            'fallback_cb'    => 'WP_Bootstrap_Navwalker::fallback',
                            'walker'         => new WP_Bootstrap_Navwalker(),
                            ) );
                            ?>
    Plugin Author megamenu

    (@megamenu)

    Thanks. No clues there unfortunately..

    Can you zip up the parent theme (it looks custom?) and post a link to it here? You could upload it to wpengine and delete the file later.

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Hi!

    Here is the link to the zipped parent-theme:

    https://franklincovdev.wpengine.com/wp-content/kawebb.zip

    Plugin Author megamenu

    (@megamenu)

    Hi Kawebb,

    Thanks. I’ve installed it and pasted my own php include code into the header.php file and it’s working as expected.

    This code: https://www.screencast.com/t/spiHn2igtZ
    Into this file: https://www.screencast.com/t/tCS25R6Atln
    Looks like this: https://www.screencast.com/t/YSvW5vn8IfSj

    Can you try the same?

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Hi!

    I’ve added the code to header.php (the same way as in your image) but it still looks the same for me as before (normal dropdown). Should I comment out the other nav-code? If I do that the menu becomes blank again. Can it be something in the child theme thats making the error? Since you only tried with the parent theme. You can look at the URL I sent you in the first post if you want to check what I’m seeing.

    Thanks!

    Plugin Author megamenu

    (@megamenu)

    Hi kawebb,

    It could be something in the child theme, yes. Please try switching to the parent theme and make the same edit I did. At least then, we know if it is something in the child theme.

    Regards,
    Tom

    Thread Starter kawebb

    (@kawebb)

    Hi!

    Yes its working in the parent theme. Can it be a clash with the WP Nav Walker menu?

    Plugin Author megamenu

    (@megamenu)

    Hi kawebb,

    The plugin overrides the WP Nav Walker. As a next step you’ll need to strip back the child theme to figure out where the conflict lies. (for example, start with removing anything that isn’t essential from the functions.php file).

    Regards,
    Tom

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Mega menu style not showing’ is closed to new replies.