Can the ‘back to top’ button be switched off using the Quick CSS, but then reactivated on certain pages only using code on those pages only?
At the moment we have turned off the ‘back to top’ button using: #scroll-top-link { display: none; }
Could we enter code on certain pages to turn the ‘back to top’ button on just for those certain pages?
Hi CAA,
Just use this format after this code #scroll-top-link { display: none; }:
.page-id-X #scroll-top-link { display: block; }
replace X with the page id number.
Here’s an example and applied on two pages (with page id 3 and 4):
.page-id-3 #scroll-top-link, .page-id-4 #scroll-top-link { display: block; }
Hope it helps.
Best regards,
Nikko
Thank you so much Nikko! Perfect solution!
Hi CAA,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko