Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1276946

    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?

    #1276960

    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

    #1277096

    Thank you so much Nikko! Perfect solution!

    #1277110

    Hi CAA,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Can 'back to top' button be activated on only certain pages?’ is closed to new replies.