Site logo

Archived topic

Hamburger Menu hides in Mobile

17 replies · Started by Sars on October 7, 2020

Viewing posts 1–15 of 18

HI Team,
I have a small Issue,
On reading one of the threads , I added this code in Custom CSS

@media (min-width:768px) {
    .main-navigation .main-nav ul li.slideout-toggle a {
        background-color: #00aced;
    .main-navigation .main-nav ul li.slideout-toggle a:hover {
        background-color: #4843D2;
    }
}

But Unfortunately, I am facing 2 issues,
1) The hamburger menu and the social icons disappears in mobile
2) The hover background does not change even when I add the background color.

Thank you

Hi Leo,
Thanks a lot for your valuable time.

The menu is showing, but on hover it disappears.
I tried adding a background, the background is shown on desktop, but not on mobile.

Thanks a lot for your time.

Your code above is wrapped in @media (min-width:768px) { so it's desktop only.

Does that help?

Thanks a lot @leo. I removed the media wrap. Still the background of the hamburger menu disappears on hover.

VEry sorry to ask such basic questions.

Hmm give this CSS a shot:

button.menu-toggle {
    background-color: #00aced;
}

Thanks Leo,

I added this:

li.slideout-toggle a {
        background-color: #00aced;
    .main-navigation .main-nav ul li.slideout-toggle a:hover {
        background-color: #000;
    }
			button.menu-toggle {
    background-color: #00aced;
}

Still the background disappears on mouse hover

You are missing a closing } for this block of CSS:

li.slideout-toggle a {
        background-color: #00aced;

Try this instead:

.main-navigation .main-nav ul li.slideout-toggle a {
    background-color: #00aced;
}
.main-navigation .main-nav ul li.slideout-toggle a:hover {
    background-color: #000;
}
button.menu-toggle {
    background-color: #00aced !important;
}

Thank you ,

Now the code is:

@media (min-width:769px) {
.main-navigation .main-nav ul li.slideout-toggle a {
    background-color: #00aced;
}
.main-navigation .main-nav ul li.slideout-toggle a:hover {
    background-color: #000;
}
button.menu-toggle {
    background-color: #00aced;
}
}

Unfortunately, Still the color is not changing.

Thank you

I have done as your advice Leo. Still no change :(

Thank You

Tried the edited code Leo . But still on hover the hamburger icon becomes transparent :(

.main-navigation .main-nav ul li.slideout-toggle a {
    background-color: #00aced;
}
.main-navigation .main-nav ul li.slideout-toggle a:hover {
    background-color: #000;
}
button.menu-toggle {
    background-color: #00aced !important;
}

Thank You

On Mobile, There is a fixed #00aced color Leo. On desktop, On Hover, the hamburger becomes transparent.

I am trying this:
Normal : #00aced color
On hover -> some other color
for both mobile and desktop.

Thanks again for your time.

This archived topic is closed to new replies.