Yesterday I updated my ENFOLD theme and the custom CSS I was using for the navigation (logo and glassy header) is no longer working. Please advise if I need to use different CSS. I have put the URL in the private content link.:
/* NB for SVG logo */
.logo img { width: 300px; height: auto;
position: relative; top: 15px;
} !important;
#top .av_header_glassy.av_header_transparency #header_main {
background-color: rgba(255,255,255,0.5);
}
the ” !important;” is really outside that curly bracket ? ;)
Hi,
You are using an SVG logo, so you can’t target the img tag, since there isn’t one. Try this instead:
.logo svg {
width: 300px;
height: auto;
position: relative; top: 15px;
}
Your CSS looks a bit strange as @guenni007 pointed out, so if the rest of your CSS is not working, then please check it in a tool like this: http://csslint.net/
Best regards,
Rikard
Thank you both that worked. Its interesting because the old code really did work before. I have used it on lots of my other enfold sites. At least now I have the right code that I can use if the same problem occurs elsewhere. Thanks again.
Hi,
Great, I’m glad that we could help. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Thanks. This is solved so can be closed.