跳到内容

Kodefix Sticky Bar

v1.0.0

Grzegorz Kubiszyn · 2026年10月29日 上架

A Gutenberg sticky bar container. Nest other blocks (including Kadence) inside a bar that pins while scrolling.

正在使用
10+
评分
暂无
累计下载
281
最近更新
2026年10月29日
需要 WordPress 6.5+已测试到 7.1.5PHP 8.0+

Kodefix Sticky Bar adds a container block for the block editor. Place any blocks inside it — paragraphs, buttons, Kadence Row Layout, sections, and more. The bar stays in its place in the page layout and only pins to the top or bottom of the viewport once you scroll past it (CSS position: sticky).

Features

  • Nest any Gutenberg blocks inside the sticky bar
  • Choose top or bottom sticky edge
  • Offset and z-index controls to avoid clashes with other sticky or fixed elements (theme headers, admin bar)
  • Optional admin bar compensation on the front end
  • Hide the bar below a chosen viewport width
  • Optionally keep the bar hidden until a chosen page element (anchor ID) appears on screen or leaves above the viewport

Development

Compiled editor and front scripts under dist/assets/ (for example editor-*.js, view-*.js, and related CSS) are built with Vite 7, @kucrut/vite-for-wp, and @vitejs/plugin-react. WordPress provides react and @wordpress/* as externals; they are not bundled.

Human-readable sources that match those builds ship inside this plugin under assets/src/ (editor.tsx, view.ts, style.ts, style.css).

To regenerate the compiled files from a full monorepo checkout:

  1. cd plugins/blocks/front
  2. pnpm install
  3. pnpm run build -- kfx-sticky-bar

Plums

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

导航

说明

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

© 2026 Plums