This topic has 4 replies, 3 voices, and was last updated 10 years by moosemanmedia.
-
Author
Tagged: background color, main menu
-
September 26, 2014 at 09:26 #29799moosemanmediaParticipant
Standard, the main menu has no background and is transparent on homepage. If you scroll you have a grey background with certain transparency.
How can I get the same transparent grey when opening homepage, and thus also before scrolling down?
Many thanks.
September 26, 2014 at 14:21 #29825CatalinModeratorHello,
Add this in your style.css file from your child theme:
COPY CODE#header .is-sticky .kleo-main-header { background-color: rgba(0,0,0,0.4) !important; }
let me know if this works.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 26, 2014 at 15:40 #29848sharmstrModerator@catalin: This works great on the homepage, but also effects the rest of the site when the menu is in ‘sticky’ mode. I’m only using a transparent menu on the homepage. The rest of the site isn’t so I dont want the grey background. If you only want it when using a transparent menu, you have to specify that in your css
COPY CODE.navbar-transparent #header .is-sticky .kleo-main-header { background-color: rgba(0,0,0,0.4) !important; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
September 26, 2014 at 15:51 #29851CatalinModeratori see your point and you are right… @moosemanmedia: use the CSS with .navbar-transparent class to be more accurate.
10x @sharmstr for your observation, helpful as always, gg
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 26, 2014 at 17:13 #29870moosemanmediaParticipantSuper, thank you both.
I didn’t even notice effect on other pages yet, so will use sharmstr his code.
Be great & have a nice WE
-
AuthorPosts
The topic ‘main menu scroll transparency’ is closed to new replies.