跳到内容

StickySpot – Sticky Sidebar, Widgets & Blocks

v1.0.0

serbyy · 2026年11月24日 上架

Keep any widget, block or element visible while visitors scroll. Stops before the footer and works with classic and block themes.

正在使用
10 以下
评分
暂无
累计下载
36
最近更新
2026年11月25日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

A sign-up box stays in view while the article scrolls, then slides away before the footer.
A sign-up box stays in view while the article scrolls, then slides away before the footer.
General settings: engine, margins, sticky headers, where sticking ends and stacking.
General settings: engine, margins, sticky headers, where sticking ends and stacking.
Sticky Elements: make anything sticky with a CSS selector, each with its own margins, screen width and stop element.
Sticky Elements: make anything sticky with a CSS selector, each with its own margins, screen width and stop element.
The Sticky panel on any block in the block editor, with its own offset, screen width and a "stop here" switch.
The Sticky panel on any block in the block editor, with its own offset, screen width and a "stop here" switch.
Display rules: choose the pages and visitors where StickySpot runs.
Display rules: choose the pages and visitors where StickySpot runs.
Every widget gets "Make this widget sticky" and "Stop sticky widgets above this one".
Every widget gets "Make this widget sticky" and "Stop sticky widgets above this one".

StickySpot keeps your most important content in view: newsletter boxes, ads, tables of contents, buy buttons, author boxes or a whole sidebar. Visitors scroll, the element stays on screen, and it slides away politely before it reaches your footer.

Make anything sticky

  • Widgets: every widget gets a “Make this widget sticky” checkbox.
  • Blocks: every block gets a Sticky panel in the block editor, in posts, pages, the widget editor and the Site Editor.
  • Any element: add a CSS selector and StickySpot does the rest. Each rule can have its own margins, stop element and screen size.
  • Auto sticky: make the last widget of any sidebar sticky with one click.
  • Stop blocks and widgets: mark any block or widget as a stop element and sticky items slide up when they reach it.
  • Page builders and classic editor: wrap content in [stickyspot]...[/stickyspot], or give any element the class stickyspot-sticky.

Smart by default

  • Stops before the footer automatically, so it never covers it.
  • Stays below fixed or sticky site headers: switch on automatic detection or enter the header’s selector.
  • Stays below the WordPress admin bar.
  • Several sticky items in one column can stack or push each other away.
  • Elements taller than the screen scroll first and then stick at the bottom, so nothing gets cut off.
  • Follows late loading images, ads and comments.

Two engines

StickySpot uses fast native CSS sticky positioning whenever your theme allows it, and switches to its JavaScript engine when the theme blocks it (for example with hidden overflow on columns). You can also force either engine.

Full control

  • Top and bottom margins, stop elements, stay inside the parent column.
  • Responsive rules: minimum and maximum screen width, minimum screen height, turn off on touch devices.
  • Display rules: turn off on the home page, archives, search, 404, single post types, specific posts or for logged-in users. No script is loaded where StickySpot is off.
  • Appearance while stuck: shadow, background colour, corner radius, fade in, z-index and an extra CSS class.
  • Import, export and reset of all settings.
  • Debug mode with outlines and console messages.

Switching from Fixed Widget

StickySpot reads the “Fixed widget” checkbox of the old Fixed Widget plugin, so those widgets stay sticky right away. Its sticky blocks and stop blocks keep working too. On first activation StickySpot copies Fixed Widget’s margins, stop elements, screen limits and custom selectors; you can repeat this any time under Import & Export.

Light and accessible

  • Plain JavaScript, no jQuery and no other libraries on the front end.
  • Scripts load only where they are needed: on pages with sticky widgets or blocks, or on every page once you add element rules.
  • Respects “reduced motion” settings.
  • Translation ready.

For developers

  • CSS classes stickyspot-is-pinned and stickyspot-is-pushed.
  • JavaScript events stickyspot:pin and stickyspot:unpin, and window.StickySpot.refresh().
  • PHP filters stickyspot_enabled and stickyspot_config.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums