.back-to-top {
display: none;
}
didnt do anything:(
I’ve cleared caches , both server and browser side.
Need a site link to see why
footer#footer .colophon a.back-to-top {
display: none;
}
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
We’re still awaiting stellamaris5’s reply. You can create your own thread here: https://wordpress.org/support/theme/customizr#postform
Works for me. Thanks Dave.
Right, Dave…the first code works if pasted in to the Custom CSS field but not when pasted in the child theme style.css
Ideally I want it all in the style.css – does it make a difference?
Also interestingly, if I do it like:
.back-to-top {
display: none;
}
it works.
If I do it like:
//REMOVE BACK TO TOP LINK//
.back-to-top {
display: none;
}
it doesn’t.
MAkes you think…
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
This isn’t a CSS comment:
//REMOVE BACK TO TOP LINK//
If you put non-CSS in a CSS file then all proceeding CSS will break. E.g. you could have this and there would be no red border on your website:
//REMOVE BACK TO TOP LINK//
body {
border: 10px solid red !important;
}
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Have you tried @rdellconsulting’s second code snippet? That has more specific selectors for your Child Theme style.css file.
THanks Andrew, I have this working now with the first code. But I use //xxx// in front of all my CSS code (so I remember why I did it in the first place) and it works fine
In any case it only works when entered into the CustomCSS boxand not in the style.css fine
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Leaving in broken code makes it a lot harder to track down the issue you’re facing. If I were you I’d remove all these “//” comments and replace them with CSS “/* */” comments.
sorry it is /* */ may bad