• Resolved pierre

    (@pierrelonchampt)


    Hi there,

    I have a display problem with the width of the menu.
    I have set a max width (outer and inner) of 500px in the options but it does not seem to be respected.
    See here : https://ibb.co/Vj8Ytvs

    How can I fix it ?

    Thank you !

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

    (@megamenu)

    Hi pierre,

    I will need to inspect the site using my own browser. Please post a link to your site so I can take a look.

    Regards,
    Tom

    Thread Starter pierre

    (@pierrelonchampt)

    Hi,
    Here is my test website: https://f9da-df55b8c3bd50.wptiger.fr/
    Regards

    Plugin Author megamenu

    (@megamenu)

    Hi pierre,

    Thanks. I see it is a conflict with your theme (thestory). To fix it you will need to edit your themes header.php file (or whichever file is responsible for outputting the following code – you may need to look around for ti) and remove the id=”menu” attribute:

    2021-04-29_10-46-12

    Then add the following to Appearance > Customize > Additional CSS:

    .nav-menu {
      float: left;
    }

    Regards,
    Tom

    Thread Starter pierre

    (@pierrelonchampt)

    Hi,

    Thank you for your reply.

    I removed the id=menu and added the php function but it still doesn’t work.
    See here

    The display widths of the menus are still not correct.

    And the menu is on 2 lines with the icons.

    Plugin Author megamenu

    (@megamenu)

    Hi Pierre,

    It looks like you’re removed the whole div that wraps the menu, please put it back so that the “nav-menu” class is present, then the CSS I provided above will position the menu correctly (note it is CSS and not PHP, so please make sure you follow the instructions closely)

    Please check this documentation for details on how to adjust the sub menu width:

    https://www.megamenu.com/documentation/adjust-sub-menu-width/

    Regards,
    Tom

    • This reply was modified 3 years, 10 months ago by megamenu.
    Thread Starter pierre

    (@pierrelonchampt)

    Hello,

    Thank you for your reply.

    It works better indeed. However, I still have a problem.

    On the mobile version, the main menu does not work. When I click on the “hamburger menu” nothing happens.

    Regards,

    Plugin Author megamenu

    (@megamenu)

    Hi Pieree,

    Please disable maintenance mode so I can see the site. I check these forums each morning on weekdays, so I will next be here on Monday.

    Regards,
    Tom

    Thread Starter pierre

    (@pierrelonchampt)

    Hi,

    Sorry. I have disabled maintenance mode.

    Thanks

    Plugin Author megamenu

    (@megamenu)

    Hi Pierre,

    Thanks. Please go to Appearance > Customize > Additional CSS and add the following:

    @media screen and (max-width: 1000px) {
      .mega-menu-pexeto-main-menu .navigation-container {
        display: block;
      }
      .mega-menu-pexeto-main-menu .mobile-nav,
      .mega-menu-pexeto-main-menu .header-buttons {
        display: none;
      }
    }

    Then under Mega Menu > Menu Themes > Mobile Menu, enable the Sub Menu – Force Full Width option.

    Regards,
    Tom

    Thread Starter pierre

    (@pierrelonchampt)

    Hello,
    Thank you very much for your answer !
    Last question: is it possible to completely hide a menu on mobile (not only the item) ?
    Regards

    Plugin Author megamenu

    (@megamenu)

    Hi Pierre,

    Please see:

    https://www.megamenu.com/documentation/hide-mobile-menu/

    Regards,
    Tom

    Thread Starter pierre

    (@pierrelonchampt)

    Hi,
    Thank you !
    Regards
    Pierre

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘menu width display issue’ is closed to new replies.