Content · Gutenberg
Content Slider block for WordPress
Full-slide carousel with custom backgrounds per slide (color, gradient, or image) and rich text 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
Full-slide carousel with custom backgrounds per slide (color, gradient, or image) and rich text content.
Inspector panels on this block: Slides, Slider Settings. Those titles come from index.js, not from a shared template.
Behavior controls: “Background Type” options: Solid Color, Gradient, Image; “Content Alignment” options: Left, Center, Right; “Transition” options: Fade, Slide.
Where to find it
Gutenberg inserter → Content → search “Content Slider” (block name `blockenberg/content-slider` in block.json). Style it in the sidebar after insert.
How to use Content Slider block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Content Slider”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Slides. Set “Background Type”, “Overlay Opacity”, “Heading”, “Subtext”.
- Check the published page. The view script reads HTML data attributes: data-autoplay, data-speed. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Background Type | Select control; the chosen value is saved on the block. Options: Solid Color; Gradient; Image. |
| Overlay Opacity | Numeric range control in the inspector. Range 0–90. |
| Heading | Text field in the inspector. |
| Subtext | Multiline text field in the inspector. |
| Show Button | On/off toggle in the inspector. |
| Button Label | Text field in the inspector. |
| Button URL | Text field in the inspector. |
| Content Alignment | Select control; the chosen value is saved on the block. Options: Left; Center; Right. |
| Height (px) | Numeric range control in the inspector. Range 200–900. block.json default: 480. Saved as `height`. |
| Border Radius (px) | Numeric range control in the inspector. Range 0–40. block.json default: 12. Saved as `borderRadius`. |
| Transition | Select control; the chosen value is saved on the block. Options: Fade; Slide. block.json default: fade. Saved as `transition`. |
| Autoplay | On/off toggle in the inspector. On by default. Saved as `autoplay`. |
| Speed (ms) | Numeric range control in the inspector. Range 1500–9000. block.json default: 4000. Saved as `speed`. |
| Show Arrows | On/off toggle in the inspector. On by default. Saved as `showArrows`. |
| Show Dots | On/off toggle in the inspector. On by default. Saved as `showDots`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-autoplay, data-speed.
When this is the right block
- Full-slide carousel with custom backgrounds per slide (color, gradient, or image) and rich text content — that is the job of Content Slider, not a generic content block.
- Use it when you need the editor control labeled “Background Type”, which exists on this block’s inspector.
- It matches pages about slider, carousel, content.
- Inserter grouping: articles, cards, lists, and long-form layouts.
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 Content Slider block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Content Slider”. It sits under Content. After insert, open Slides and set “Background Type”, “Overlay Opacity”, “Heading”, “Subtext”.
What makes Content Slider different from other Blockenberg blocks?
Full-slide carousel with custom backgrounds per slide (color, gradient, or image) and rich text content. Inspector labels on this block include “Background Type”, “Overlay Opacity”, “Heading”, “Subtext”.
Is the Content Slider Gutenberg block free?
Yes. Content Slider ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Content Slider 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: Slides, Slider Settings).
Related content blocks
Content Box
Styled content container with optional icon/emoji, badge label, title, rich body text, style variants (info/warning/success/tip/quote), border, background, and rounded corners.
Media & Text Rows
Repeatable alternating image-and-text rows — each row independently flippable. Classic landing-page pattern for feature breakdowns and storytelling.
Tabs
Tabbed content panels with full WYSIWYG editing per tab.
Accordion
Collapsible accordion panels for FAQ, features, and more.
Accordion Table
A data table where each row expands on click to reveal rich detail content — specs, bullet points, sub-data, or notes. Perfect for pricing tiers, product specs, API docs, and comparison matrices.
Alert / Notice
Info, success, warning or error notice block with icon, title and body text. Pure CSS — zero JS.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Content Slider from the Gutenberg inserter.