ToTop Link for WordPress

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.

Get ToTop Link WordPress Plugin

Latest v1.6 / WordPress.org / Support


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.6
Major code overhaul, improved performance, added new default SVG icons, moved Javascript to footer for better page load speed.

1.5.3
Small maintenance release.

1.5.2
Added new option to customize scroll to top speed.

1.5 & 1.5.1
Fixed “Invalid argument supplied for foreach()” error.

1.4
Added a scroll offset to allow defining when the ToTop link appears.

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.

32 thoughts on ToTop Link for WordPress

Say something...

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=""> <s> <strike> <strong>

Return to Top ▲Return to Top ▲