How to add Back to Top Button to Blogger Blogs

Back to top is a nice “addon” u can add on your Blogger blogs. It stays in the end of every page and when clicked gets u back on top.It looks like this:

Back To Top

The very first step

To add this Back To Topbutton” first you will need to log in to your Blogger Account. Go to Design and than Edit HTML.

Blogger DesignBlogger Edit HTML

Next, click on Expand Widget Templates(placed in the right top corner).

Search (with CTRL + F by holding CTRL than pressing F while holding it) for: ]]></b:skin>.

After you have found it copy and paste the code below just before it.

#backtotop {
padding:5px;
position:fixed;
bottom:10px;right:10px;
cursor:pointer;
}

The very last step

Search for: </body>

When you find it paste the code below just before it.

<a href="#" id="backtotop">Back to Top Write whatever you want here.</a>

You are done. That’s it.

Applying some nice Slide effect

This is by choice. If you make this step, when you click on Back to Top the page will slide to top, and if you don’t do this step, the page will immediately switch to top.

To do this search and find: <head>

And place the upcoming code right beneath it.

&lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'
type='text/javascript'&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;&gt;
$(window).ready(function(){
$('#backtotop').click(function(e){
e.preventDefault();
$('html, body').animate({scrollTop:0}, 'slow');
});
});
&lt;/script&gt;

You are done! Enjoy your Back to Top Button!

2 Comments

  1. Posted November 29, 2011 at 2:27 pm | Permalink

    Very useful post….thnx a lot…it really help me a lot…..

  2. Posted August 21, 2012 at 8:51 pm | Permalink

    nice trick thanks a lot of for this i got it successfully………

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Polls

    How do you like our new design ???

    View Results

    Loading ... Loading ...
Loading...
Like an article? Recieve more cool articles by mail