Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1360265

    Main Menu > General > Display As Icon

    “Choose how you want to display the menu items on desktop computers. If you choose to display the “burger” icon on desktop computers it will also be used on tablets and mobile devices”

    When I turn the hamburger menu on for desktop it moves the hamburger menu over so far to the right that you can’t see it on a mobile device unless you turn it landscape.

    If I turn the hamburger menu off for desktop, then the hamburger appears again on mobile.

    The hamburger menu works perfectly on mobile until I enable the hamburger menu for desktop, then there is a problem with mobile. I left it with a problem so you can see. See link below.

    Please advise,

    Jas

    #1360426

    Hey Jasmer,

    Thank you for the inquiry.

    The burger menu is not visible on mobile devices or on smaller screens because the border color of the menu lines is the same as the background color of the header (white). To fix the issue, please add this css code.

    @media only screen and (max-width: 767px) {
        #top .header_color .av-hamburger-inner, #top .header_color .av-hamburger-inner::before, #top .header_color .av-hamburger-inner::after {
        background-color: #808080;
        }
    }
    

    You may need to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code. And please do not forget to purge the cache.

    Best regards,
    Ismael

    #1360430

    That is what I thought, but then I turn the phone in landscape position and you can see the burger menu.

    It appears then the color is set to a grey and I can see it.

    Again, if I disable “show burger menu on desktop” then the problem goes away. If I enable it, it appears to send the burger menu further to the right out of view on portrait orientation.

    Please turn your phone in landscape and you’ll see.

    Thank you,

    Jas

    • This reply was modified 2 years, 3 months ago by Jasmer.
    #1360913

    Hi,
    Thanks for the link to your site, for mobile portrait this css is giving the burger menu a white background color:
    2022-08-06_001.jpg
    I linked to the file below, it looks like the cached version of your child theme stylesheet.
    Please try removing it or adding this to override it:

    @media only screen and (max-width: 767px) {
        #top .header_color .av-hamburger-inner, #top .header_color .av-hamburger-inner::before, #top .header_color .av-hamburger-inner::after {
        background-color: #808080;
        }
    }

    Another possibility is that this white background color was chosen in the Enfold Theme Options ▸ Advanced Styling or in the Enfold Theme Options ▸ General Styling
    but I was not able to reproduce it on my test site, I did test Ismael’s css on your site by injecting it and it does work, please give it a try.

    Best regards,
    Mike

    #1360953

    Hi Mike,

    You and Ismael were correct. I changed the background color and it appeared.

    However:

    It appears almost in the middle of the top of the screen. Why? That is an odd place for a menu. It should be near flush right – not floating around in the middle.

    This issue happened when I changed the following: “Choose how you want to display the menu items on desktop computers. If you choose to display the “burger” icon on desktop computers it will also be used on tablets and mobile devices”

    When I turn the hamburger menu on for desktop it moves the hamburger menu from the right where it should be to nearly the center. How do I place the hamburger menu where it should be in portrait WITHOUT changing the position in landscape view?

    Thanks so much,

    Jas

    • This reply was modified 2 years, 3 months ago by Jasmer.
    • This reply was modified 2 years, 3 months ago by Jasmer.
    • This reply was modified 2 years, 3 months ago by Jasmer.
    • This reply was modified 2 years, 3 months ago by Jasmer.
    • This reply was modified 2 years, 3 months ago by Jasmer.
    #1360961

    Hi,.
    Glad to hear this helped, please include an admin login in the Private Content area so we can help place the burger menu to the right for your mobile device.

    Best regards,
    Mike

    #1360962

    Great thanks!

    Please let me know how you did it.

    Also worth mentioning, in portrait mode the social icons cannot be seen, which is ok, no problem, it would be too crowded. I just wanted to mention it.

    In landscape you can see social icons which is also ok.

    Thanks,

    Jas

    #1361004

    Hi,
    Glad to hear this helped, the social icons are not designed to be seen on mobile portrait because as you pointed out “it would be too crowded” this is done with css if anyone wants to show them crowded
    unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    #1361008

    Well yes, above you said…

    “Please include an admin login in the Private Content area so we can help place the burger menu to the right for your mobile device.”

    And my response was…

    Great thanks! Please let me know how you did it.

    So can you do it? Move the burger menu to the right? Instead of floating around the middle in portrait mode. It’s still the same as it was. It hasn’t moved.

    Thanks, Jas

    #1361023

    Hi,
    Sorry my mistake, please try this css:

    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .main_menu {
        right: -120px;
    }
    }
    

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1361031

    Thanks Mke! Worked!

    #1361105

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Desktop Hamburger Menu causing issue with mobile site Hamburger Menu’ is closed to new replies.