Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Edit: Sounds like you need to append this on the end of your link selector:
:link
E.g.:
.current-menu-item a:link
Thread Starter
cordez
(@cordez)
Thanks Andrew, I tried that on my main nav with this:
nav.primary ul li .current_page_item a:link,
nav.primary ul li .current-menu-item a:link {
background-color: #000 !important;
color: #fff;
}
but a rule higher up is still overiding it. My site’s temp domain is: printmakerscurated.co.uk
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
First looks like there shouldn’t be a space after “li
“, e.g.:
nav.primary ul li.current_page_item a:link,
nav.primary ul li.current-menu-item a:link
Thread Starter
cordez
(@cordez)
Thanks – I just corrected that, but unfortunately it’s still not working
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Just wondering, where did you put this CSS?
Thread Starter
cordez
(@cordez)
Right at the bottom of my stylesheet – as I wanted to make sure it was overiding everything above it
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Thread Starter
cordez
(@cordez)
You’re right – although I have no idea as to why it isn’t showing as I’m just uploading the stylesheet to the theme folder via FTP.
I’ll investigate some more…
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
If it’s still inexplicable check if your hosting providers are caching your site.
Thread Starter
cordez
(@cordez)
OK, I had 2 copies of the stylesheet going on! But I’ve resolved this, and can now see the CSS in the source, but it’s not working.
Thread Starter
cordez
(@cordez)
And I just cleared my cache and it works!
Thanks very much for spotting my errors Andrew.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support