Back to Top Button – Disable

Posted in: Newspaper
Post count: 16

Is there a way to disable that Back to Top Button?

Post count: 23312

Hi mamito,

You can use the code below and place it in Theme Panel->Custom CSS area if you want to hide this functionality from your front end.

The code is ->

.td-scroll-up{
display:none!important;
}

Thanks.

Post count: 200

How to disable it only on woocommerce pages and leave it on on all other pages?

Thanks

Post count: 22421

Hi,
Please use this code:

.woocommerce .td-scroll-up{
display:none!important;
}

Thanks.

Post count: 200

Thank you

Post count: 200

Hi,

how to disable scroll to top on specific pages by page ID?

Thanks

Post count: 20688

Hi,

All pages, posts, categories will have an ID, this ID will appear as a class on the body tag, it can be seen with the browser inspector for example
https://www.screencast.com/t/Rd45hcCgsy
You can use that ID class before the scroll class to remove it only for those pages, for example

.page-id-XXXX .td-scroll-up{
display:none!important;
}

Thanks

Post count: 200

Hi Simion,

I currently have the following:

.woocommerce .td-scroll-up{
display:none!important;
}

Adding below the following solves the issue, but only for 1 page. It works with only 1 page ID.

.page-id-41454 .td-scroll-up{
display:none!important;
}

Nothing happens if I add more page IDs separated by commas, or without commas. I need to hide it on multiple pages.

Post count: 20688

Then add them like this for multiple pages

.page-id-41454 .td-scroll-up,
.page-id-41453 .td-scroll-up,
.page-id-41458 .td-scroll-up,
.page-id-41459 .td-scroll-up{
display:none!important;
}

Post count: 200

Works perfect! Thanks Simion, much appreciated!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.