Skip to content
Back to the Top is a WordPress plugin that return to scroll smoothly to the top of the page. You can scroll to the smooth anchor link in the page.
PHP JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
languages
tests
.gitignore
.travis.yml
LICENSE
README.md
back-to-the-top.php
backtothetop.admin.js
composer.json
jquery.backtothetop.js
jquery.backtothetop.min.js
phpcs.ruleset.xml
phpmd.ruleset.xml
phpstan.neon
phpunit.xml
readme.txt
screenshot-1.png

README.md

Introducing Back to the Top

Build Status

Back to the Top is a WordPress plugin that return to scroll smoothly to the top of the page. You can scroll to the smooth anchor link in the page.

Back to the Top will add a link that return the top of the page for your website. You can customize label, color, display and so in the options page. You don't need to edit your theme.

Back to the Top is also a jQuery plugin. Back to the Top Project Page here. You can set easily WordPress plugin ’Back to the Top’ than jQuery plugin ones.

Features

  • Customizable options in the options page
  • Selectable the effects easing of the scroll
  • The iconic font supported, Dashicons and Font Awesome

Install Back to the Top

  1. Download and unzip files. Or install 'Back to the Top' plugin using the WordPress plugin installer. In that case, skip 2.
  2. Upload 'backtothetop' to the '/wp-content/plugins/' directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
  4. Go to the 'Back to the Top' options page through the 'Appearance' menu in WordPress.
  5. Have fun!

Options page screenshot

Customize Stylesheet

You can customize Stylesheet by the Custom CSS. See the following example.

a#backtothetop-fixed {
	background: #f1f1f1;
	border-radius: 10%;
	padding: 0.2em;
}
a#backtothetop-fixed:hover {
	background: #fefefe;
}

WordPress Plugin Directory

Back to the Top is hosted on the WordPress Plugin Directory.

https://wordpress.org/plugins/back-to-the-top/

Contribution

Patches and Bug Fixes

Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.

  1. Fork Back to the Top from GitHub repository
  2. Create a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Create new Pull Request

Changelog

  • Version 1.0.5
    • fix indent and reformat with phpcs and phpcbf
    • add composer.json for test
    • add static code analysis config
  • Version 1.0.4
    • change Requires at least from 3.4 to 4.0
    • improve CI environment
    • updated: update jquery.backtothetop.js v1.1.7
  • Version 1.0.3
    • fixed: fix backtothetop.admin.js
    • updated: update jquery.backtothetop.js v1.1.6
  • Version 1.0.2
    • fixed: fix handle and option name
    • fixed: fix typo
  • Version 1.0.1
    • fixed: refactoring by the PHP_CodeSniffer
    • updated: update jquery.backtothetop.js v1.1.5
    • added: add PHPUnit and tests
  • Version 1.0.0
    • initial release

Upgrade Notice

  • 1.0.4
    • Requires at least version 4.0 of the WordPress

License

Licensed under GPLv2.

You can’t perform that action at this time.