- This topic has 17 replies, 2 voices, and was last updated 5 years, 7 months ago by
Leo.
-
AuthorPosts
-
October 7, 2020 at 6:19 am #1476396
Sars
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
October 7, 2020 at 8:56 am #1476889Leo
StaffCustomer SupportHi there,
1) Have you solved this? I’m seeing the menu toggle on mobile:
https://www.screencast.com/t/1zOhEKZ37The code you’ve added should be unrelated to social icons so you will have to figure why it’s hidden on mobile.
2) The first block of your CSS is missing a closing bracket
}
https://www.screencast.com/t/pI4L41p1h5lOOctober 8, 2020 at 9:02 am #1478803Sars
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.
October 8, 2020 at 9:05 am #1478804Leo
StaffCustomer SupportYour code above is wrapped in
@media (min-width:768px) {so it’s desktop only.Does that help?
October 8, 2020 at 9:37 am #1478856Sars
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.
October 8, 2020 at 10:04 am #1478917Leo
StaffCustomer SupportHmm give this CSS a shot:
button.menu-toggle { background-color: #00aced; }October 8, 2020 at 10:08 am #1478927Sars
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
October 8, 2020 at 10:11 am #1478932Leo
StaffCustomer SupportYou 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; }October 8, 2020 at 10:25 am #1478953Sars
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
October 8, 2020 at 10:28 am #1478960Leo
StaffCustomer SupportCan you just copy and paste my code here?
https://generatepress.com/forums/topic/hamburger-menu-hides-in-mobile/#post-1478932October 8, 2020 at 10:30 am #1478965Sars
I have done as your advice Leo. Still no change 🙁
Thank You
October 8, 2020 at 10:31 am #1478967Leo
StaffCustomer SupportWe are close. Just edited the code slightly:
https://generatepress.com/forums/topic/hamburger-menu-hides-in-mobile/#post-1478932Give it another shot?
October 8, 2020 at 10:44 am #1478991Sars
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
October 8, 2020 at 10:50 am #1478998Leo
StaffCustomer SupportIt seems to work for me now?
https://www.screencast.com/t/BHGLSFouZOctober 8, 2020 at 10:56 am #1479002Sars
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.
-
AuthorPosts
- You must be logged in to reply to this topic.