What is the CSS code to put in the customizer that changes the background colour and text for the top bar
http://www.williamsondrainage.co.nz
eg background color: white
text & social icons: dark grey
What is the CSS code to put in the customizer that changes the background colour and text for the top bar
http://www.williamsondrainage.co.nz
eg background color: white
text & social icons: dark grey
Hi @VelocityWeb,
Thanks for writing in.
Add this in your custom CSS:
.x-topbar{
background-color:#FFF;
}
.x-topbar .p-info{
color: rgb(76, 76, 76);
}
.x-topbar .x-social-global a {
color: #636262 !important;
}
Let us know how it goes.
Thanks.
That’s excellent! Thx
If I wanted the hover color to be black what would I add?
Hi There,
Please add this CSS:
.x-topbar .x-social-global a:hover {
color: #000 !important;
}
Thanks
I have that code in https://www.adventureride.co.nz/ but it is not working ???. Is there a default setting overriding the code?
This is a pro theme and that might be the problem
Hello There,
Upon adding above code shared by our staff on Chrome dev tools it seems to be working fine on my end. Looks like you have removed the code, can you please try adding again? Please clear browser cache and then load the page. Let us know how it goes.
https://screencast.com/t/ZqtSuHShY77P
Thanks.
Hi There,
Please check your entire custom CSS here (http://csslint.net) and resolve all found errors. Because those syntax errors are preventing some of your custom CSS to work.
And there are conflicting css codes from your CSS HERO, please remove this codes or just change this to style your topbar accordingly.
HTML > BODY > DIV#x-root > DIV#top > HEADER.masthead.masthead-inline > DIV.x-topbar > DIV.x-topbar-inner.x-container.max.width > DIV.x-social-global > A.facebook > I.x-icon-facebook-square {
color: rgba(222,221,221, 0.25);
}
HTML > BODY > DIV#x-root > DIV#top > HEADER.masthead.masthead-inline > DIV.x-topbar > DIV.x-topbar-inner.x-container.max.width > DIV.x-social-global > A.facebook > I.x-icon-facebook-square:hover {
color: rgba(247,247,247,1)!important;
}
HTML > BODY > DIV#x-root > DIV#top > HEADER.masthead.masthead-inline > DIV.x-topbar > DIV.x-topbar-inner.x-container.max.width > P.p-info > A {
color: rgba(235,233,233, 0.25);
}
Thanks,
I have removed the CSS
Hi There
No, the css code is still there:
It was added via CSS Hero together with a form styling.
Actually we can make our own CSS more specific to overwrite that, please update the previous css code given to this:
/*topbar background color*/
.x-topbar{background-color: white;}
/*topbar links and social icon colors*/
.x-topbar .x-social-global a i,
.x-topbar .p-info a {
color: gray !important;
}
/*topbar links and social icon hover colors*/
html body #x-root .site header.masthead.masthead-inline .x-topbar .x-social-global a:hover i.x-icon-facebook-square,
.x-topbar .x-social-global a:hover i,
.x-topbar .p-info a:hover {
color: red !important;
}
But there is one little issue with that, notice the line:
html body #x-root .site header.masthead.masthead-inline .x-topbar .x-social-global a:hover i.x-icon-facebook-square,
that is a selector that is specifically pointing to the facebook icon on your topbar, but see when you hover the fb icon. It does not turn to red, that is because of the CSS code that is on your CSS Hero I said previously. So please you need to remove those.
Thanks,