• Resolved msdesignfoto

    (@msdesignfoto)


    Hello!

    I help a friend running an online shop and she noticed recently her menu is just not there. I tested some settings, made sure all plugins were updated, but the menu still doesn’t show up.

    I ended up disabling Max Mega Menu and the menu is now visible, altough a little basic and ugly, but at least is there.

    Could someone help, please?

    Here is the site with Max Mega Menu enabled:
    Screen Capture – no menu

    And here is the site as it is now, with Max Mega Menu disabled:
    Screen Capture – Basic Menu

    Thanks

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

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

    (@megamenu)

    Hi,

    Please can you set up a staging site with MMM enabled so I can see the issue?

    Regards,
    Tom

    Thread Starter msdesignfoto

    (@msdesignfoto)

    Hello!

    I can quick enable the MMM again instead of installing a staging site. The issue seems to affect only browser users (mobile view seems fine).

    Just reply here when you have the chance to check it out and I’ll enable the plugin again.

    Chers.

    Plugin Author megamenu

    (@megamenu)

    Hi,

    Please re-enable it, I’ll be around for the next 30 minutes or so.

    Regards,
    Tom

    Thread Starter msdesignfoto

    (@msdesignfoto)

    I just enabled the plugin now.

    Plugin Author megamenu

    (@megamenu)

    Thanks. The menu is there, but it is hidden for some reason. Please edit the themes header.php file (within a Child Theme) and remove this class:

    2022-10-17_12-08-09

    That will bring the menu back, then then add the following CSS to Mega Menu > Menu Themes > Custom Styling (it must go here and not somewhere else) to fix the menu position:

    @include desktop {
        #site-navigation {
            float: right;
        }
    }

    After that it should look like this:

    2022-10-17_12-10-01

    Regards,
    Tom

    Thread Starter msdesignfoto

    (@msdesignfoto)

    Ok thanks!
    I placed the css under the MMM options but I can’t seem to remove that class. I’m already working on a child theme and I even created the header copy for this, but that class is mentioned in the parent header file, not on the child theme file.

    How can I actually remove it?

    Plugin Author megamenu

    (@megamenu)

    You would need to search your theme files for ‘onepress-menu’, then try changing the class to something else i.e. ‘onepress-menu-here’. Once the change shows up on the front end, copy the file to your child theme and remove the class (or rename it).

    Regards,
    Tom

    Thread Starter msdesignfoto

    (@msdesignfoto)

    I’m going nuts over here..

    I’ve searched in all the parent theme files for some reference to that class, but found nothing. I see that css in the browser window like you did, and its under the /head somewhere, but I am unable to find it in the files…

    • This reply was modified 2 years, 4 months ago by msdesignfoto.
    Plugin Author megamenu

    (@megamenu)

    Hi,

    I see it in template-tags.php, but they’re outputting the menu HTML using a PHP function which makes it difficult to copy to a child theme. As an alternative, try installing the TC Custom JavaScript plugin (or plugin of your choice) and use this to remove the class instead:

    jQuery(document).ready(function( $ ) {
    	$(".onepress-menu").removeClass("onepress-menu");
    });

    Regards,
    Tom

    Thread Starter msdesignfoto

    (@msdesignfoto)

    Well, that didn’t work. It caused a critical error when trying to remove that class (using Snippets plugin).

    Plugin Author megamenu

    (@megamenu)

    Please try using the JavaScript I posted above with the TC Custom JavaScript plugin, that way there is no need to edit any files.

    Regards,
    Tom

    Thread Starter msdesignfoto

    (@msdesignfoto)

    Ok, after a backup restore and fixing the snippet, I used the TC Custom Javascript plugin to add that code. Snippets plugin also used an interface in a similar way, but it must have interpreted as php or something.

    Now it works. The menu is visible again!

    Thanks!

    Thread Starter msdesignfoto

    (@msdesignfoto)

    I just had a minor setback…

    In mobile, there are two menus… One collapsed, and another one always opened. Can’t seem to figure this out now..

    Thread Starter msdesignfoto

    (@msdesignfoto)

    Last minute code:

    Added this

    .onepress-menu ul {z-index: 99;}

    And deleted the javascript code. Now both issues are gone!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘No menu at all’ is closed to new replies.