Title: Sticky on Scroll
Author: Latif Pala
Published: <strong>2017 年 9 月 6 日</strong>
Last modified: 2026 年 4 月 9 日

---

搜索插件

![](https://ps.w.org/sticky-on-scroll/assets/banner-772x250.png?rev=3110212)

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

![](https://ps.w.org/sticky-on-scroll/assets/icon-256x256.png?rev=3110212)

# Sticky on Scroll

 作者：[Latif Pala](https://profiles.wordpress.org/latifpala/)

[下载](https://downloads.wordpress.org/plugin/sticky-on-scroll.zip)

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

 [支持](https://wordpress.org/support/plugin/sticky-on-scroll/)

## 描述

The Sticky on Scroll plugin for wordpress allows to make any element sticky as soon
as the element hits the top of the page. It is commonly used to keep navigation 
menus at the top of page.

You might have to add little bit of HTML/CSS to work this plugin perfectly for other
elements except navigation menu. Make sure you do not select too large elements 
as sticky.

Always try to add a unique element class/ID for the element you want to set as sticky.
For multiple elements you can use class for best results.

For multiple elements you can easily add element ID or classes separated by comma(
For eg. #section1, #section2, .header). You can also use any HTML elements as sticky.
However adding using ID/class is preferable.

## 屏幕截图

[⌊Sticky on scoll form⌉⌊Sticky on scoll form⌉[

Sticky on scoll form

[⌊Twenty Sixteen sticky menu⌉⌊Twenty Sixteen sticky menu⌉[

Twenty Sixteen sticky menu

[⌊Twenty Sixteen Settings⌉⌊Twenty Sixteen Settings⌉[

Twenty Sixteen Settings

## 安装

 1. Upload `sticky-on-scroll` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the `Plugins` menu in WordPress
 3. Done!

## 常见问题

### How can I set elements that I want to set sticky?

You can go to settings->Sticky on Scroll. You will see two options there. You can
add all elements comma separated in `Sticky Element` text box.

### What is `Minimum screen size to set elements sticky.` field used for?

It is used to disable elements to stick at top at certain screen size. It can be
used in small devices as scroll is not required in small devices. But you can use
it as per your need.

### Once the element becomes sticky, it is not positioned properly.

There are some situations when this can happen, if your theme assigns absolute positioning
on the element. You have to adjust your css accordingly if this happens.

### Is it possible to have multiple sticky elements?

Yes, you can add multiple elements separated by comma in `settings->Sticky on Scroll`
textbox.

## 评价

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

### 󠀁[Surprisingly effective](https://wordpress.org/support/topic/surprisingly-effective-4/)󠁿

 [Squiggy45](https://profiles.wordpress.org/squiggy45/) 2018 年 6 月 17 日

I've been looking high and low for a plugin that would allow a sticky element on
the left and a scrolling element on the right. Many of them out there, but none 
that would allow multiple instances throughout one page. And then I come across 
this unreviewed (until now!) plugin that hasn't been updated in 9 months. Works 
great! Thanks for this plugin and I hope you support/update it.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/sticky-on-scroll/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Latif Pala ](https://profiles.wordpress.org/latifpala/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

Initial release.

#### 1.0.1

Alert bug fixed.

#### 2.0.0

Translation Added
 Tested upto new WP Version Minor bugs fixed

#### 2.0.2

Tested upto new WP Version

## 额外信息

 *  版本 **2.0.2**
 *  最后更新：**7 月前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 7.0 或更高版本 **
 *  已测试的最高版本为 **6.5.14**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/sticky-on-scroll/)
 * 标签
 * [header](https://cn.wordpress.org/plugins/tags/header/)[menu](https://cn.wordpress.org/plugins/tags/menu/)
   [navigation](https://cn.wordpress.org/plugins/tags/navigation/)[sticky](https://cn.wordpress.org/plugins/tags/sticky/)
   [sticky header](https://cn.wordpress.org/plugins/tags/sticky-header/)
 *  [高级视图](https://cn.wordpress.org/plugins/sticky-on-scroll/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/sticky-on-scroll/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sticky-on-scroll/reviews/)

## 贡献者

 *   [ Latif Pala ](https://profiles.wordpress.org/latifpala/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/sticky-on-scroll/)