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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Sticky Sidebar”, insert it. Category: Layout.
- Configure inspector controls that exist on this block. Open Layout. Set “Sidebar Side”, “Width Split”, “Sticky Top Offset (px)”, “Column Gap (px)”.
- 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
| Control | What the code does |
|---|---|
| Sidebar Side | Select control; the chosen value is saved on the block. Options: Left; Right. block.json default: left. Saved as `sidebarSide`. |
| Width Split | Select 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 Style | Select 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 Image | On/off toggle in the inspector. Off by default. Saved as `showImage`. |
| Image Style | Select 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 Heading | On/off toggle in the inspector. On by default. Saved as `showHeading`. |
| Heading | Text field in the inspector. block.json default: Sidebar heading. Saved as `heading`. |
| Heading Tag | Select control; the chosen value is saved on the block. Options: H2; H3; H4. block.json default: h3. Saved as `headingTag`. |
| Show Sub-text | On/off toggle in the inspector. On by default. Saved as `showSubText`. |
| Sub-text | Text field in the inspector. block.json default: A helpful sidebar panel that stays in view as your visitor scrolls.. Saved as `subText`. |
| Show Rating Box | On/off toggle in the inspector. Off by default. Saved as `showRatingBox`. |
| Rating Stars | Numeric range control in the inspector. Range 1–5. block.json default: 5. Saved as `ratingStars`. |
| Rating Score Text | Text field in the inspector. block.json default: 4.9 / 5. Saved as `ratingCount`. |
| Rating Label | Text field in the inspector. block.json default: based on 120 reviews. Saved as `ratingLabel`. |
| Show Bullets | On/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 CTA | On/off toggle in the inspector. On by default. Saved as `showCta`. |
| Button Label | Text field in the inspector. block.json default: Get Started. Saved as `ctaLabel`. |
| Button URL | Text field in the inspector. block.json default: #. Saved as `ctaUrl`. |
| Button Style | Select control; the chosen value is saved on the block. Options: Filled; Outline; Ghost. block.json default: filled. Saved as `ctaStyle`. |
| Open in new tab | On/off toggle in the inspector. Off by default. Saved as `ctaNewTab`. |
| Show Contact Info | On/off toggle in the inspector. Off by default. Saved as `showContactInfo`. |
| Phone Number | Text field in the inspector. Saved as `contactPhone`. |
| Email Address | Text field in the inspector. Saved as `contactEmail`. |
| Container Background | Color control in the inspector. Saved as `containerBg`. |
| Main Content Bg | Color control in the inspector. Saved as `mainBg`. |
| Sidebar Background | Color control in the inspector. block.json default: #f8fafc. Saved as `sidebarBg`. |
| Sidebar Border | Color control in the inspector. block.json default: #e2e8f0. Saved as `sidebarBorderColor`. |
| Heading Color | Color control in the inspector. block.json default: #111827. Saved as `headingColor`. |
| Text Color | Color control in the inspector. block.json default: #374151. Saved as `textColor`. |
| Bullet Icon Color | Color control in the inspector. block.json default: #6366f1. Saved as `bulletIconColor`. |
| CTA Background | Color control in the inspector. block.json default: #6366f1. Saved as `ctaBg`. |
| CTA Text Color | Color control in the inspector. block.json default: #ffffff. Saved as `ctaColor`. |
| Star Color | Color control in the inspector. block.json default: #f59e0b. Saved as `starColor`. |
| Link Color | Color control in the inspector. block.json default: #6366f1. Saved as `linkColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- Two-column layout with a rich sticky sidebar — perfect for articles, docs, pricing pages, and long-form content — that is the job of Sticky Sidebar, not a generic content block.
- Use it when you need the editor control labeled “Sidebar Side”, which exists on this block’s inspector.
- It matches pages about sticky, sidebar, layout.
- Inserter grouping: page structure, sections, and composition.
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
Content Menu
In-page anchor navigation that highlights the current section as the user scrolls — can float fixed on the left or right, or sit inline.
Masonry Grid
Responsive masonry layout for images with hover effects.
Side Menu
Hierarchical vertical navigation with collapsible sections for docs, wikis, and multi-section pages.
Bento Grid
Modern asymmetric bento-box grid with featured large cells and smaller detail cards — perfect for showcasing features, stats, or portfolio highlights.
Off-Canvas Drawer
Slide-out side panel (drawer) triggered by a button.
Rich Columns
Multi-column layout with icons, headings, rich text, and optional links — ideal for features, benefits, or service descriptions.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Sticky Sidebar from the Gutenberg inserter.