How to Add A Stylish Back To Top Button In Blogger

How to Add A Stylish Back To Top Button In Blogger

Do you want to add a custom stylish back to top button in Blogger? In this article, I will show you how you can do that. 

Here we will use CSS and JavaScript code to make it work. It is a very lightweight code, so you will not affect the loading speed of your blogger website. 

What is a back to top button?

The back to Top button is a shortcut button that allows users to quickly navigate to the top of the page. It is generally placed at the bottom left or right of the webpage. 

Having this button on the website, greatly improve the user experience of a website. 

So, in this article, I will show you how you can easily add a stylish back to top button to your blogger website. If you have any previous BTT buttons then remove them first and then follow the below guide. 

How to add a stylish back to top button?

To add the back to top button, follow the below steps. 

#1: Go to blogger dashboard > theme > take a backup of your theme. 

#2: Now click on edit HTML & remove the previous buttons if any or hide it. 

#3: Now search for ]]></b:skin> tag and paste the below css code just above it.

CSS codes : 

background: url( 0 0 no-repeat;
height: 130px;
width: 72px;
bottom: 5px;
right: 5px;

background-position: 0 -142px;

#4: Now add the javascript code just above the </body> tag. 

<script type='text/javascript'>
{$("html, body").animate({scrollTop:0},"slow");
return false})});
<a href='#' id='mybacktotop'/>

Video Guide: 

YouTube video

Note that to work this code properly, you must have jQuery install on your theme. You can install the latest jQuery code in your blogger theme by following this guide. 

You can also further customize this back to top button. You can remove the image URL in the CSS code and add your custom image and use it as a button. 

You can also customize your existing Back to top Button. (video) You can easily do that by modifying the CSS code. 


I hope you have added the stylish back to top button to your blogger website by following this guide. If you have any doubt regarding this, you can ask me in the comment section. 

Don’t forget to share this article with your friends on social media and join our Telegram group for more awesome blogger tutorials like this. 

Read Also: How to Lazyload Embedded YouTube iframes in Blogger

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *