A simple plugin for WordPress that adds an unobtrusive “back to top” link to your site or blog. The link uses WordPress’ included jQuery to provide a slick UX, with the link subtly appearing after the page has been scrolled, and disappearing once the user returns to the top of the page. Additionally, a smooth scrolling animation is added when the link is clicked on.
You can see an example of the plugin at work on this site. Simply scroll down the page a little bit and you’ll see the link appear in the top right corner of the page. See the configuration options below for more details on how you can customize the location and style of the link.
Download – Latest Version v1.3
Installation
- Upload plugin files to your plugins folder or install using WordPress’ “Add Plugin” feature — just search for “ToTop Link”
- Activate the plugin
- Go to Settings->ToTop Link in the WordPress admin area, and customize.
Configuration Options
The plugin is built to be as minimal as possible; the options are thus quite simple. You can adjust both the style and the position of the link.
Position
The position is where the link will be displayed. You can choose any of eight different positions, or us custom values to position it exactly where you want it (*NEW*).
Style
The style is how the link looks. You can choose between using a Dark image for sites with a light-coloured background, Light image for sites with a dark-coloured background, or a simple Text link. *NEW* You can now also define your own custom image to use.
If the text link style is chosen, you can further configure the link with different link/hover colours and custom wording for the link.
Frequently Asked Questions
What is the plugin license?
This plugin is released under a GPL license.
Where can I see a demo of this in action?
On this page, you should see it in the top right corner of the page.
I’ve enabled the plugin, why isn’t it displaying?
It could be that your theme doesn’t call wp_footer() (as it should). This is a pretty essential part of a WordPress theme, so we recommend you contact the theme’s designer and ask them to add it. Optionally, if you’re comfortable editing your theme file, you can add it yourself.
Changelog
1.3
A quick update to fix a bug with getimagesize. Also took the opportunity to clean up the settings page.
1.2
Added custom offset and custom image features.
1.1
A quick update to fix a couple bugs and add a few extra positions. Thanks to those who commented.
1.0
This is the first version. The biggest change is that before this, the plugin was nothing.
Developing our 













Cool plugin! Nice work.
Cheers John!
On my page not working:(
Link is not clickable for some reason…
Установил, очень хорошо работает! На мой взгляд, не хватает еще одной позиции установки, это посередине. Было бы удобней.
Good idea. I’ll be sure to include that in the next release.
Version 1.1 out now.
@Sasa: That should fix your problem — it was a z-index issue.
@Владимир: More positions added.
Thank you Ryan! I put version 1.1 and now everything works great!
I would like to have the option to change the image to one I can upload to my word press library and set as my preferred image for this plugin. Thank you, other than that, this is a great plugin.
Hi John, great suggestion. Expect it (and custom offsets) in the next version — hopefully out over the weekend.
Thanks Ryan!
Hey John, just FYI — Version 1.2 has just been released — a little later than expected, but it does include the ability to set the image to be anything you’d like. You can upload an image to your Media Library and then just copy and paste the URL into the ToTop Link settings.
Thanks Ryan! I am updating to 1.2 right now. Thank you for this, I really do appreciate it. I’ll be in touch again soon.
Wow, it looks awesome with my own image now, but first it wouldn’t work, but after I selected “custom” it started working fine. You can see it on my site on the left/middle area. Thanks again for a really nice app and for all your hard work!