• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
logo

All Blogging Tips

Everything About Blogging

  • Home
  • Start a Blog
  • Grow Your Blog
  • About
  • Contact
  • Privacy Policy
  • Tools I Use

3 Ways To Add Floating Go To Top Button In WordPress Blogs

By Ammar Ali 10 Comments

We all don’t want to lose visitors. When after scrolling long deep pages, if a readers has to go back to top of page, he/she has to do this by pressing the up button located on the right side of our browser, which is very annoying.

Isn’t it?

Goto TOp

But don’t worry you can now make  your visitors stay on your blog by using our tutorial How To Add Floating Go To Top Button In WordPress Blogs.

This will Add Floating Go To Top Button In WordPress Blogs which will help you go back to top of page with just one click, no matter what is the position of the page, even if you are half way down the post, you can click this button to go back to top.

Table of Contents
  • 3 Ways To Add Floating Go To Top Button In WordPress Blogs
  • 1. Add Simple Code To Your Blog.
  • 2. Use Scroll To Top WordPress Plugin.
  • 3. Use Go To Top WordPress Plugin.

3 Ways To Add Floating Go To Top Button In WordPress Blogs

1. Add Simple Code To Your Blog (Best Way)
2. Use Scroll To Top WordPress Plugin
3. Use Go To Top WordPress Plugin

1. Add Simple Code To Your Blog.

This is simple way to add go to top button, best way to add code to your blog. This will also add a cool image but you can change it to your own image.
Goto top code demp

  • Goto WordPress Dashboard > Appearance >Widget
  • Drop a Text Widget to your sidebar.
  • Now Paste below code in Text Widget

 <a style="display:scroll;position:fixed;bottom:5px;right:5px;" href="#"><img src="http://lh6.ggpht.com/_7wsQzULWIwo/SgXYIY37QsI/AAAAAAAABDY/IyDZK-CJzdA/Up1Blue%5B4%5D.png"/></a>

  • Click on Save Button and See the magic!

Note: You can also add image you want to do so just replace http://lh6.ggpht.com/_7wsQzULWIwo/SgXYIY37QsI/AAAAAAAABDY/IyDZK-CJzdA/Up1Blue%5B4%5D.png with your image url.

2. Use Scroll To Top WordPress Plugin.

Fully written in jQuery, the plugin adds a floating box centered in the footer of your site that only appears when you scroll the page down, and when clicked gently roll the site to the top. All this without any modification to your template.

How To use it?
Scroll To Top

  • Download Plugin Here
  • You can either use the automatic plugin installer or your FTP program to upload it to your wp-content/plugins directory the top-level folder. Don’t just upload all the php files and put them in /wp-content/plugins/.
  • Activate the plugin through the ‘Plugins’ menu in WordPress
  • Visit your Scroll to Top Options (Options – Scroll to Top)
  • Configure any options as desired, and then enable the plugin
  • That’s it!

3. Use Go To Top WordPress Plugin.

This plugin will Add a “Go to top” link to your posts. This is a wordpress plugin which based on jQuery, jQuery Easing and Scroll to Top v3

How To use it?Goto Top WP plugin

  1. Download Plugin Here
  2. Upload the plugin folder to the /wp-content/plugins/ directory or use Dashboard Method
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

That’s All. Hope you will like this post. If you face any problem just comment below, I’d be glad to help you out.

Share this post:

Share on X (Twitter) Share on Facebook Share on Pinterest Share on Email Share on WhatsApp

About Ammar Ali

A blogger, web designer, front-end developer and WordPress specialist since 2011. I started this blog during high school. Here I share what I've learned so far and what I continue to learn through blogging so that I can be of assistance in some way to improve your blog. Read more here.

Reader Interactions

Comments

  1. Sylvia says

    November 5, 2014 at 2:22 pm

    Hey!
    Thanks so much for this post! I’ve implemented the html code and I hope you can help me with a specific request…
    I’d like the floating image to show further down on the page, not immediately when people land on it.

    I have a sign up form on the top of the page and a long descriptive text underneath. I want people to see the floating ‘Sign up’ image (with a ‘back to top’ link in it) when they start reading the text to have the possibility to go straight back to the top to the sign up form.

    I hope I explained myself right… and it would be awesome if you could suggest how to do this

    Many thanks

    Sylvia

    Reply
    • Ammar Ali says

      November 5, 2014 at 6:30 pm

      Hello Sylvia,

      Sure, I’ll try my best to help. Can you please email me with description of issue along with screenshot (if possible)

      I’d be more than happy to help. My email is info@ allbloggingtips.com

      Reply
  2. Omar Manalansan says

    February 28, 2014 at 4:03 am

    I’m looking for different ways to add a scroll to top button for my site because my theme doesn’t have a built in button for this functionality. Luckily, I’ve stumbled upon this. Thanks for the quick tutorial. I might go with no. 1, though the image will be on a fixed position. Thank you so much Ammar!

    Reply
    • Ammar Ali says

      February 28, 2014 at 5:47 pm

      Good to see that the post was useful for you, Omar.

      Keep visiting.

      Reply
  3. Vipul Jain says

    July 18, 2013 at 11:46 am

    Go to Top Button definitely adds a greater functionality and user experience. So it’s one another quality factor. And most importantly it’s described in a suitable manner by Ammar.

    Reply
  4. Vikas Sindher says

    September 1, 2012 at 6:00 pm

    Wow that’s a cool tip. I added it in my blog.

    Reply
  5. Irfan says

    April 20, 2012 at 7:17 pm

    Thank you for this but my theme itself got that button. But few have asked me how to install into theme, now I’ll show this to people. :D

    Reply
  6. Shamna says

    April 20, 2012 at 3:45 pm

    Would love to have a similar button for blogger. Any place i can get hold of it?

    Reply
    • Ammar Ali says

      April 20, 2012 at 4:41 pm

      Yes you can also add floating goto top button in Blogger. Just copy this code
      https://allbloggingtips.com/wp-content/uploads/2012/04/goto-top-button-code-for-blogger.txt
      and place it in text widget in sidebar :D

      Reply
  7. iTechCode says

    January 1, 2012 at 2:28 pm

    Good Work. Hope i can get more tips from this site. Thanks.

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Get Blogging & SEO Tips by Email

Get helpful blogging, SEO, and content tips delivered straight to your inbox. No spam.

Join 3,489 other subscribers

Popular Posts

  • Is Your Blog Properly Optimized for Performance and SEO?
  • 10 Powerful Ways to Become a Famous Blogger
  • Google AdSense vs Affiliate Marketing: A Simple Comparison for Beginners
  • Effective Ways to Increase Content Reach and Audience Engagement
  • 12 Things to Do Before Applying for Google AdSense
  • Are Backlinks Becoming Less Valuable in Modern SEO?
  • Step-by-Step Guide to Creating a Successful Travel Blog
  • How to Start as a Freelance Writer & Is It Worth?
  • Add Smooth Multi Level Drop-Down Menu In Blogger
  • How To Delete A Blogger Blog Permanently In 5 Minutes (+ FAQs)

Blogging Tools I Use

Over the years, I’ve tested dozens of blogging and WordPress tools. Below are the tools I personally use and recommend for blogging, performance, SEO, and monetization.

Blogging Tools I Use →

Categories

  • Announcement (12)
  • Ask The Readers (2)
  • Blogger (56)
    • Blogger Hacks (4)
    • Blogger Tips (24)
  • Blogging (108)
    • Blogging Tips (81)
    • Writing Tips (6)
  • Coupons (2)
  • Design (5)
  • Email Marketing (4)
  • Free Themes (1)
    • WordPress Themes (1)
  • Free Traffic (40)
    • Guest Blogging (7)
    • Search Engine Optimization (4)
    • Social Media (13)
  • Giveaway (16)
  • Hosting (14)
  • How To (48)
  • Latest News (1)
  • Make Money Online (37)
    • Adsense (7)
    • Affiliate Marketing (8)
  • Reviews (17)
  • SEO (46)
  • Social Media (13)
    • Facebook (5)
      • Tips and Tricks (3)
    • Twitter (2)
  • WordPress (54)
    • WordPress Plugins (17)
    • WordPress Themes (5)
    • WordPress Tricks (2)
    • WordPress Widgets (14)

Footer

About This Site

All Blogging Tips helps beginners learn how to start, grow, and monetize blogs using WordPress. I share practical guides and honest recommendations based on real blogging experience.

Read more →

Site & Resources

  • Tools I Use
  • About
  • Advertise Here
  • Contact
  • Disclosure Policy
  • Copyright Policy
  • Privacy Policy

Start & Grow Your Blog

  • A Ridiculously Helpful Guide to Start Your Own Blog In 10 Minutes
  • How To Grow Your Blog And Build An Audience
  • How To Make Money From Your Blog
  • Cheap WordPress Hosting
  • Free WordPress Hosting

Copyright © 2026 All Blogging Tips · Powered by InMotion Hosting · WordPress · Log in