How to Add Back To Top Button In Blogger Blog

Friday, February 07, 2014 Add Comment
Back to Top is a button once clicked it will navigate the user to the top of the page or post. It is basically used for smooth scrolling, users donot have to use using scroll bars instead they can use this button to reach to top in no time. Those bloggers who wishes to write a long post or if you have a video blog where you post lots of images in the single post back to the top of the post button is very helpful for you. Back to Top button not only saves the time of your visitor, but it also adds an enjoyment factor to your blog. In today's tutorial I will show you How to Add Back to Top Button in Blogger Bog.

How to Add Back to Top in Blogger:

Login to your Blogger account and select the blog on which you would like to place back to top Button. Now, go to Layout section >> Add a Gadget >> HTML/Java Script and paste the following code and starts customizing this buttton:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" >
    /***********************************************
    * Scroll To Top Control script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Modified by www.bestbloggertricks.com
    * This notice MUST stay intact for legal use
    * Visit Project Page at http://www.dynamicdrive.com for full source code
    ***********************************************/
    var scrolltotop={
        //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
        //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
        setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
        controlHTML: '<img src="URL Goes Here" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
        controlattrs: {offsetx:5, offsety:5}, //offset of control relative to right/ bottom of window corner
        anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
        state: {isvisible:false, shouldvisible:false},
        scrollup:function(){
            if (!this.cssfixedsupport) //if control is positioned using JavaScript
                this.$control.css({opacity:0}) //hide control immediately after clicking it
            var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
            if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
                dest=jQuery('#'+dest).offset().top
            else
                dest=0
            this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
        },
        keepfixed:function(){
            var $window=jQuery(window)
            var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
            var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
            this.$control.css({left:controlx+'px', top:controly+'px'})
        },
        togglecontrol:function(){
            var scrolltop=jQuery(window).scrollTop()
            if (!this.cssfixedsupport)
                this.keepfixed()
            this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
            if (this.state.shouldvisible && !this.state.isvisible){
                this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
                this.state.isvisible=true
            }
            else if (this.state.shouldvisible==false && this.state.isvisible){
                this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
                this.state.isvisible=false
            }
        },
   
        init:function(){
            jQuery(document).ready(function($){
                var mainobj=scrolltotop
                var iebrws=document.all
                mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
                mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
                mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
                    .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
                    .attr({title:'Scroll Back to Top'})
                    .click(function(){mainobj.scrollup(); return false})
                    .appendTo('body')
                if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
                    mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
                mainobj.togglecontrol()
                $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
                    mainobj.scrollup()
                    return false
                })
                $(window).bind('scroll resize', function(e){
                    mainobj.togglecontrol()
                })
            })
        }
    }
    scrolltotop.init()
    </script>

Recommended:  How To Add Custom Favicon To Your Blogger Blog

Customization: 

You can choose any image for your Back to Top button, here I have gave some buttons but you can use your own too if you want. Place any of the URL you like in the above code, replace “URL Goes Here” with any of your choosen URL from below and click Save.

Beautiful Back to Top Button for Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYkKsWHHH_cL0I8O06e0y1yVKbVwdZdJkEIqpHho8Fql_VrK4VOJfjBy8wK8fFEsnpokOasOWWiqRnA1W7-G7Hft851M7Io0S5J2CrAjpJHhI_5Ichq8HpmhMGkrKdE8bSb6Hi1YJQokU/s1600/back-to-top-button-for-blogger1.jpg

Shiny Back to Top Button for Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLTQ5rhvk2t4CJn7snJyJTYPhlALbuujPCH5Ff9BcFEuycVvCa5S2w-ZMO3FEhtLmwAuso9D0sD3sJkZZzwOKV41eHzKJ13afiVhZv5Gi3Kd7dnkoTn4Ch1nY5Hmhu8QpylT4iyoYw6m4/s1600/back-to-top-button-for-blogger2.jpg

Beautiful Back to Top button for Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqt2ePblMoKxDit0kxfnEKtRMbmADsmDyg8EGI7voXVWVrkrvvC4zAl4ZbHGsT4Q6vwO8PFMOZv30fBGaYgJ4naeCO-i0uCy_oPz0p53Zo8SgcW38SFd1ipUpTFs_T_XGS5as5_Y-1hBU/s1600/back-to-top-button-for-blogger3.jpg

Beautiful Back to Top button for Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWGTpmr844qjpiTtXCKzFs3yM7RouHuZrYBFZnNgRu4q94d6_abRf7b9buBGgaKYZOExyvo2JV6gJ4tj0pWK2dJTR-fZDldp818cZDp-I0YQICuhbCpYUCRL260h9PnCOmQ1iLH5aoFro/s1600/back-to-top-button-for-blogger4.jpg

Beautiful Back to Top button for Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir1EelnTiG5RS_j2H12yuU8GEwuSupZEEzrVsB9n4263jz_OTpiSVToIXvY75cfhgoGXKgFcu8of5vSYYfr-E8TsIpo59iEj3Jyb8ocsUBLoLhHT-M1utj9_x21m-jrEszrmqEzPFb1_k/s1600/back-to-top-button-for-blogger5.jpg


I hope this article of mine has helped you in implementing back to top of the post button in blogger bogs, do write to us in a comment how do you liked it and if you have any problem in implanting in your blogger blog.

How to Rank Higher in Search Results by Optimizing Blog Post title

Friday, February 07, 2014 Add Comment
Rank Higher in Search results
According to SEO perspective blog page title or post title is the most important factor. Post titles play major role in ranking your blog post higher in search engines. Blogger templates which are not SEO optimized by default have a blog title before their post or page title which can harm your blogger SEO. In this article we will teach you how to rank higher in search results by optimizing blog post title.
Read more »

How to Lock/Unlock Widgets in Blogger Blog

Thursday, February 06, 2014 Add Comment
Lock or Unlock any Widget
Today I will show show how to lock or unlock any widget in blogger. Time to time we want to work advanced and desires to remove or edit that widget that are doesnot provide any option to either remove or edit. Few days ago, one of our users asked us that How to Lock or Unlock Widgets in Blogger Blog?

How to Un-Lock Widgets in Blogger

First of all you need to do is to login into your Blogger account by visiting to blogger.com. After logging in, select a blog and go to Template >> Edit HTML (We advise you to Test on any blog first.). 

Then at the top of your screen you will see a “Jump to Widget” button right next to the orange Save Template button. It is a drop down menu containing of all the widgets which are being used in template. Select any of widget that you like entirely depends on yourself.

Jump to Widget in Blogger

After selecting it takes you to widget code something like this.(It also look different because the name of your widget may be different from the below ones):

<b:widget id='Header1' locked='true' title='Best Blogger Tricks (Header)' type='Header'>
------------------------
------------------------
</b:widget>
If you want to unlock the widget, just replace locked='true' with locked='false', this will command the template to unlock the gadget from the Layout Area. (Best Tip: A user can also remove the widget by removing all the code from <b:widget> to </b:widget> tags).

How to Lock Any Widget in Blogger:

As you already know the way to unlock gadgets in blogger, this part would not cause a lot of problems. Go to Blogger >> Template >> Edit HTML and search for locked='false'. On finding it replace the False with True to lock the widget. When everything is done save your template to finish the process great fully.

 
Lock or Unlock any widget in blogger

We hope this Tutorial will help you alot. if you have any query about this feel free to ask in comments or email us.

How to increase Blog Traffic by Optimizing images

Thursday, February 06, 2014 Add Comment
SEO abbreviation of search engine optimization plays a critical role in driving traffic to your blogs or site that's why most of the bloggers and webmasters always try to improve SEO of their blogs. Optimizing images before uploading them to blogger blog can also play an important role in improving the SEO of your blog and most of the bloggers do not pay attention towards optimizing images. We as bloggers when download images they are saved as irrelevant names such as untitile.png, do you know that the Google image search is the widely used image search engine users always use it for finding quality images, icons and photos. You can drive a large no of audience to your blog by optimizing images and we are here to serve you. In this article we will describe you how to increase blog traffic by optimizing images.
Read more »

How to Submit Blogger Blog Sitemap to Google Webmaster Tools

Wednesday, February 05, 2014 Add Comment
A successful blogger always looks for different ways to generate organic traffic for its blog. By organic traffic I mean visitors are coming to your blog from search engines such as Google. To make your blog visible in Google search engine you have to submit your blog sitemap to Google Webmaster tools. Before you submit your blog to Google webmaster your blog must be added to Google webmaster tools. For details you can check our article on How to add blogger blog to Google webmaster Tools. In this article I will be explaining you how to submit blogger blog sitemap to Google webmaster tools.
Read more »

How to Add Blogger Blog to Google Webmaster tools

Tuesday, February 04, 2014 Add Comment
Google webmaster tools is a free web service provided by Google, this service is basically built for webmasters and website owners. There are lots of things we can achieve using Google webmaster tool such as access search statics, check blog crawl status, your blog index stats etc.. To access webmaster tools we have to submit our blogs to Google webmaster and today I am telling you how to Add your blogger blog to Google webmaster tools.
Read more »

How to Customize your Blogger Blog Using Stylebot

Sunday, February 02, 2014 Add Comment
Bloggers always wants their blogs to look a top notch infect not only bloggers any website owner will like his website to look stunning and different from others. Not much of bloggers and webmasters know how to code or customized their blogger blogs. We as bloggers normally search for a better looking template on the internet and when found simply apply to our blogs but where the uniqueness go. We usually neglect it and those who want to customize their blogs they don’t recognize the tricks. In this tutorial I will be guiding you how to customize your blogger blog using Stylebot which is a Google chrome extension.
Read more »