- This topic has 17 replies, 2 voices, and was last updated 3 years, 6 months ago by Leo.
-
AuthorPosts
-
October 7, 2020 at 6:19 am #1476396Sars
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 #1476889LeoStaffCustomer 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 #1478803SarsHi 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 #1478804LeoStaffCustomer 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 #1478856SarsThanks 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 #1478917LeoStaffCustomer SupportHmm give this CSS a shot:
button.menu-toggle { background-color: #00aced; }
October 8, 2020 at 10:08 am #1478927SarsThanks 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 #1478932LeoStaffCustomer 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 #1478953SarsThank 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 #1478960LeoStaffCustomer 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 #1478965SarsI have done as your advice Leo. Still no change ๐
Thank You
October 8, 2020 at 10:31 am #1478967LeoStaffCustomer 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 #1478991SarsTried 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 #1478998LeoStaffCustomer SupportIt seems to work for me now?
https://www.screencast.com/t/BHGLSFouZOctober 8, 2020 at 10:56 am #1479002SarsOn 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.