Layout · Gutenberg

Sticky Sidebar block for WordPress

Two-column layout with a rich sticky sidebar — perfect for articles, docs, pricing pages, and long-form content.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Two-column layout with a rich sticky sidebar — perfect for articles, docs, pricing pages, and long-form content.

Inspector panels on this block: Layout, Sidebar Style, Sidebar Image, Sidebar Content, Bullet Points, CTA Button, Contact Info. Those titles come from index.js, not from a shared template.

Behavior controls: “Sidebar Side” options: Left, Right; “Width Split” options: 25% sidebar / 75% content, 30% sidebar / 70% content, 33% sidebar / 67% content, 40% sidebar / 60% content; “Visual Style” options: Card (bg + shadow), Border only, Flat (no styling); “Image Style” options: Circle, Rounded, Square, Full width.

Where to find it

Gutenberg inserter → Layout → search “Sticky Sidebar” (block name `blockenberg/sticky-sidebar` in block.json). Style it in the sidebar after insert.

How to use Sticky Sidebar block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Sticky Sidebar”, insert it. Category: Layout.
  3. Configure inspector controls that exist on this block. Open Layout. Set “Sidebar Side”, “Width Split”, “Sticky Top Offset (px)”, “Column Gap (px)”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Sidebar SideSelect control; the chosen value is saved on the block. Options: Left; Right. block.json default: left. Saved as `sidebarSide`.
Width SplitSelect control; the chosen value is saved on the block. Options: 25% sidebar / 75% content; 30% sidebar / 70% content; 33% sidebar / 67% content; 40% sidebar / 60% content. block.json default: 30. Saved as `sidebarWidth`.
Sticky Top Offset (px)Numeric range control in the inspector. Range 0–200. block.json default: 80. Saved as `stickyTop`.
Column Gap (px)Numeric range control in the inspector. Range 8–100. block.json default: 40. Saved as `gap`.
Container Padding (px)Numeric range control in the inspector. Range 0–80. block.json default: 0. Saved as `containerPadding`.
Visual StyleSelect control; the chosen value is saved on the block. Options: Card (bg + shadow); Border only; Flat (no styling). block.json default: card. Saved as `sidebarStyle`.
Sidebar Padding (px)Numeric range control in the inspector. Range 0–60. block.json default: 24. Saved as `sidebarPadding`.
Border Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`.
Show ImageOn/off toggle in the inspector. Off by default. Saved as `showImage`.
Image StyleSelect control; the chosen value is saved on the block. Options: Circle; Rounded; Square; Full width. block.json default: rounded. Saved as `imageStyle`.
Image Size (px)Numeric range control in the inspector. Range 40–200. block.json default: 80. Saved as `imageSize`.
Show HeadingOn/off toggle in the inspector. On by default. Saved as `showHeading`.
HeadingText field in the inspector. block.json default: Sidebar heading. Saved as `heading`.
Heading TagSelect control; the chosen value is saved on the block. Options: H2; H3; H4. block.json default: h3. Saved as `headingTag`.
Show Sub-textOn/off toggle in the inspector. On by default. Saved as `showSubText`.
Sub-textText field in the inspector. block.json default: A helpful sidebar panel that stays in view as your visitor scrolls.. Saved as `subText`.
Show Rating BoxOn/off toggle in the inspector. Off by default. Saved as `showRatingBox`.
Rating StarsNumeric range control in the inspector. Range 1–5. block.json default: 5. Saved as `ratingStars`.
Rating Score TextText field in the inspector. block.json default: 4.9 / 5. Saved as `ratingCount`.
Rating LabelText field in the inspector. block.json default: based on 120 reviews. Saved as `ratingLabel`.
Show BulletsOn/off toggle in the inspector. On by default. Saved as `showBullets`.
Bullet Icon (emoji/symbol)Text field in the inspector. block.json default: ✓. Saved as `bulletIcon`.
Show CTAOn/off toggle in the inspector. On by default. Saved as `showCta`.
Button LabelText field in the inspector. block.json default: Get Started. Saved as `ctaLabel`.
Button URLText field in the inspector. block.json default: #. Saved as `ctaUrl`.
Button StyleSelect control; the chosen value is saved on the block. Options: Filled; Outline; Ghost. block.json default: filled. Saved as `ctaStyle`.
Open in new tabOn/off toggle in the inspector. Off by default. Saved as `ctaNewTab`.
Show Contact InfoOn/off toggle in the inspector. Off by default. Saved as `showContactInfo`.
Phone NumberText field in the inspector. Saved as `contactPhone`.
Email AddressText field in the inspector. Saved as `contactEmail`.
Container BackgroundColor control in the inspector. Saved as `containerBg`.
Main Content BgColor control in the inspector. Saved as `mainBg`.
Sidebar BackgroundColor control in the inspector. block.json default: #f8fafc. Saved as `sidebarBg`.
Sidebar BorderColor control in the inspector. block.json default: #e2e8f0. Saved as `sidebarBorderColor`.
Heading ColorColor control in the inspector. block.json default: #111827. Saved as `headingColor`.
Text ColorColor control in the inspector. block.json default: #374151. Saved as `textColor`.
Bullet Icon ColorColor control in the inspector. block.json default: #6366f1. Saved as `bulletIconColor`.
CTA BackgroundColor control in the inspector. block.json default: #6366f1. Saved as `ctaBg`.
CTA Text ColorColor control in the inspector. block.json default: #ffffff. Saved as `ctaColor`.
Star ColorColor control in the inspector. block.json default: #f59e0b. Saved as `starColor`.
Link ColorColor control in the inspector. block.json default: #6366f1. Saved as `linkColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Sticky Sidebar block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Sticky Sidebar”. It sits under Layout. After insert, open Layout and set “Sidebar Side”, “Width Split”, “Sticky Top Offset (px)”, “Column Gap (px)”.

What makes Sticky Sidebar different from other Blockenberg blocks?

Two-column layout with a rich sticky sidebar — perfect for articles, docs, pricing pages, and long-form content. Inspector labels on this block include “Sidebar Side”, “Width Split”, “Sticky Top Offset (px)”, “Column Gap (px)”.

Is the Sticky Sidebar Gutenberg block free?

Yes. Sticky Sidebar ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Sticky Sidebar to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Layout, Sidebar Style, Sidebar Image, Sidebar Content).

Related layout blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Sticky Sidebar from the Gutenberg inserter.

Get Blockenberg