Title: scrollToTop
Author: Roman Sarvarov
Published: <strong>2017 年 7 月 20 日</strong>
Last modified: 2020 年 6 月 12 日

---

搜索插件

![](https://ps.w.org/scrolltotop/assets/banner-772x250.png?rev=1699760)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/scrolltotop/assets/icon-256x256.png?rev=1705206)

# scrollToTop

 作者：[Roman Sarvarov](https://profiles.wordpress.org/rom4i/)

[下载](https://downloads.wordpress.org/plugin/scrolltotop.zip)

 * [详情](https://cn.wordpress.org/plugins/scrolltotop/#description)
 * [评价](https://cn.wordpress.org/plugins/scrolltotop/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/scrolltotop/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/scrolltotop/#developers)

 [支持](https://wordpress.org/support/plugin/scrolltotop/)

## 描述

scrollToTop is a small plug-in that will help you to make a nice looking back to
top button or full-height bar on your WordPress website. You don’t need any knowledge
in HTML, CSS or JS: the plug-in has many settings which you can change in just one
click.

#### Features

 * Bar and Button mode
 * Choose 1 of 15+ arrow icons (which are merged in a font)
 * Change position, size, color, opacity and other styles
 * Enable/disable/change back to top text
 * Change animation effects (none/fade/slide)
 * Enable/disable async & defer script loading
 * Mobile friendly

## 屏幕截图

 * [[
 * Bar and Button mode.
 * [[
 * A small demonstration of what can be done in 1 minute.
 * [[
 * Settings page

## 安装

**Through Dashboard**

 1. Log in to your WordPress admin panel.
 2. Go to Plugins -> Add New and type **scrollToTop** in the search box.
 3. Find scrollToTop and click on Install Now, after that activate the plugin.
 4. Go to Settings -> scrollToTop and customize back to top button as you want!

**Installing Via FTP**

 1. Download the plugin to your hardisk and unzip it.
 2. Upload the **scrollToTop** folder into your plugins directory.
 3. Log in to your WordPress admin panel and activate the plugin.
 4. Go to Settings -> scrollToTop and customize back to top button as you want!

## 常见问题

### Will scrollToTop work on any template?

The plug-in can be installed and will work on any template, however full-height 
bar may not fit horizontally. Do you have enough space for that?

### I’m a template developer

Use ‘scrolltotop_default_settings’ filter to change default plugin settings.
 You
can see available settings in ‘includes/scrolltotop-functions.php’.

### I have a question/I’m need support

I will help you on any question on our [support forum](https://wordpress.org/support/plugin/scrolltotop).

## 评价

![](https://secure.gravatar.com/avatar/762510b1625d8fb87fe9e7465cc708081c0deb36a81b311e3e7641b45a2e58dc?
s=60&d=retro&r=g)

### 󠀁[experienced user : very very good !](https://wordpress.org/support/topic/experienced-user-very-very-good/)󠁿

 [hitunesaltug](https://profiles.wordpress.org/hitunesaltug/) 2021 年 7 月 13 日

this is very very good, and can be use always… if it is always keep up updates. 
i try other 10 scroll plugin… but only this is premium ! this developer know what
he doing… and this plugins must be have a priced version, if have time.

![](https://secure.gravatar.com/avatar/0f71e9f0c35812d14326b383e729f745dfa29cd8be2a08ec1d2bd920997b6dd3?
s=60&d=retro&r=g)

### 󠀁[То, что я искал!](https://wordpress.org/support/topic/%d1%82%d0%be-%d1%87%d1%82%d0%be-%d1%8f-%d0%b8%d1%81%d0%ba%d0%b0%d0%bb-2/)󠁿

 [Asome](https://profiles.wordpress.org/asome/) 2020 年 4 月 29 日 1 回复

Здравствуйте! Огромнейшее спасибо за плагин! Давно искал нечто подобное, как ВКонтакте.
Я потратил много времени, копаясь в коде – нужно было сделать кнопку, которая прокручивает
страницу вверх, а потом повторным нажатием возвращает обратно – но ничего не вышло,
а тут за секунды установил Ваш плагин и получил то, что нужно. Бесконечное спасибо!

![](https://secure.gravatar.com/avatar/4b17f74ea1ce80bd68c4ca7f9417ddbcb7cc2cebb80268bf2f923bda27a52020?
s=60&d=retro&r=g)

### 󠀁[winner](https://wordpress.org/support/topic/winner-9/)󠁿

 [Moe](https://profiles.wordpress.org/alalimoe/) 2019 年 11 月 7 日 1 回复

best scroll to top i’ve come to use in years. that is including ones i tried in “
premium” themes. thanks!

![](https://secure.gravatar.com/avatar/e14355defb0d67d70ff706cc4b03b2990925fd391182a019edbbdc06f5ac108b?
s=60&d=retro&r=g)

### 󠀁[Nice plugin!](https://wordpress.org/support/topic/nice-plugin-2665/)󠁿

 [mt1977](https://profiles.wordpress.org/mt1977/) 2018 年 5 月 3 日 1 回复

It just simply works.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/scrolltotop/reviews/)

## 贡献者及开发者

「scrollToTop」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Roman Sarvarov ](https://profiles.wordpress.org/rom4i/)

「scrollToTop」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/scrolltotop/contributors)
为本插件所做的贡献。

[帮助将「scrollToTop」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/scrolltotop)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/scrolltotop/)，查看[SVN仓库](https://plugins.svn.wordpress.org/scrolltotop/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/scrolltotop/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/scrolltotop/)。

## 更新日志

#### 1.16

 * Hotfix for 1.15

#### 1.15

 * Wrap all js to `$(document).ready(/* ... */)` to make plugin work, if its scripts
   loaded after creating container
 * Add new options “scroll to value/element”, what can set top scroll position (
   it was `0` always before)

#### 1.14

 * WordPress 5.4.x support
 * Code refactoring

#### 1.13

 * Stop animation when user manually scroll
 * Added minified files
 * New admin page settings

#### 1.12

 * Global fixes

#### 1.11

 * Fixed scrollToTop bar with admin-bar height issue.

#### 1.1

 * Added .pot file for translation in future
 * Fixed js file `async` loading

#### 1.09

_Optimized for faster work_

 * Add inline javascript caching (via transient creation)
 * Less javascript in html
 * Optimized js file
 * Add `id` attribute to a container

#### 1.08

 * New option: transform bar into button instead of hide

#### 1.07

_WordPress 5.2 support_

 * Tested up to 5.2
 * Background with 0 opacity like `background: rgba(255,255,255,0)` to just `background:
   transparent`
 * Add some cross browser codes

#### 1.06

_WordPress 5.1 support_

 * Tested up to 5.1

#### 1.05

 * New options for CSS files & inline styles output

#### 1.04

 * Global fixes

#### 1.03

_WordPress 4.9 support_

 * Tested up to 4.9.1
 * Fix WP Color Picker plugin

#### 1.02

_Added a lot of new features_

 * Bar and Button mode.
 * Advanced background.
 * Sticky width.
 * New arrow icons.
 * New animations.

#### 1.01

 * Bug fix.

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.16**
 *  最后更新：**6 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  语言
 * [English (US)](https://wordpress.org/plugins/scrolltotop/) 和 [Russian](https://ru.wordpress.org/plugins/scrolltotop/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/scrolltotop)
 * 标签
 * [back to top](https://cn.wordpress.org/plugins/tags/back-to-top/)[scroll](https://cn.wordpress.org/plugins/tags/scroll/)
   [scroll to top](https://cn.wordpress.org/plugins/tags/scroll-to-top/)[scroll up](https://cn.wordpress.org/plugins/tags/scroll-up/)
   [To top](https://cn.wordpress.org/plugins/tags/to-top/)
 *  [高级视图](https://cn.wordpress.org/plugins/scrolltotop/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/scrolltotop/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/scrolltotop/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/scrolltotop/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/scrolltotop/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/scrolltotop/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/scrolltotop/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/scrolltotop/reviews/)

## 贡献者

 *   [ Roman Sarvarov ](https://profiles.wordpress.org/rom4i/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/scrolltotop/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LNVRV7LL39E2E&source=url)