Any Block Carousel Slider
Turn Gutenberg Columns, Query Loop, Group & Gallery blocks into responsive CSS carousels.
Install in
Any Block Carousel Slider is a Gutenberg carousel slider block plugin that instantly converts supported native WordPress blocks (Columns, Query Loop/Post Template, Group, Gallery) into a responsive carousel slider. Simply enable the “Carousel” toggle in the Gutenberg editor: your content stays 100% native, your DOM stays lightweight, and your Lighthouse performance scores remain intact. This includes WooCommerce product listings rendered via the Query Loop/Post Template block, so you can showcase products without relying on the legacy Products block.
Try it out
Experience the plugin in seconds without installing anything! Launch our interactive demo:
Launch Playground Demo
Unlike many all-in-one carousel slider blocks that require you to add a dedicated “Carousel” block and rebuild every slide, Any Block Carousel Slider hooks straight into the Gutenberg blocks you already use. The result: a Query Loop/Post Template, Group, or Gallery block can become a carousel slider in one click, without content duplication or extra maintenance.
Why Any Block Carousel Slider instead of a dedicated carousel slider block?
- WordPress loops without friction – Transform Query Loop and Post Template Gutenberg blocks into a “loop slider” without creating a block per slide.
- Familiar editorial experience – Content editors keep the Gutenberg interface they know (patterns, global styles, alignments, inner blocks).
- Native scroll & performance – Native CSS scroll-snap layout, GPU-friendly, no heavy Swiper/Slick bundle to load. Only a lightweight script handles navigation, loops, and autoplay.
- Full compatibility – Works with classic themes and block themes while respecting the structure of your Query Loop/Post Template, Group, and Gallery blocks.
- Accessibility + SEO – Keyboard navigation, respects
prefers-reduced-motionpreferences, clean DOM for crawling.
What you can do in 30 seconds
- Columns on mobile: Transform any Columns block into a touch-friendly swipeable carousel on mobile instead of stacking columns vertically.
- Blog / Magazine: Display your latest posts in a Query Loop carousel with native filters and badges.
- Portfolios & testimonials: Keep your Group blocks and make them scrollable without rebuilding every slide.
- Advanced galleries: Turn the Gallery block into a responsive slider while keeping all native settings.
- Landing sections: Chain complex sections (image, title, buttons, forms) inside the same Group block and scroll them horizontally.
- WooCommerce highlights: Use a Query Loop configured for products (featured, on sale, custom taxonomy) and convert it into a CSS-only product carousel.
Quick comparison
- Activation: Any Block Carousel Slider – toggle an existing Gutenberg block. Classic carousel slider blocks – add a dedicated slider block and rebuild every slide.
- WordPress loop: Any Block Carousel Slider – works with Query Loop and Post Template blocks without duplication. Competitor carousels – require one block per slide or custom code.
- Frontend JavaScript: Any Block Carousel Slider – extremely lightweight script, CSS-powered carousel slider. Competitor carousels – load Swiper/Slick and additional scripts.
- Performance: Any Block Carousel Slider – lightweight DOM, no external assets. Competitor carousels – multiply files, reflow, and downloads.
- Content maintenance: Any Block Carousel Slider – single Gutenberg block to update. Competitor carousels – duplicate content in dedicated slides.
- Security & upkeep: Any Block Carousel Slider – no third-party libraries to monitor. Competitor carousels – depend on external JS libraries like Swiper/Slick.
Key features
- Columns block support – Native
core/columnssupport with individual slide snapping and responsive column count. - Mobile-only option – Choose to run the carousel exclusively on mobile devices (< 782px) while maintaining your native Gutenberg layout on desktop.
- CSS-powered scroll – Smooth carousel slider with
scroll-snapand lightweight JavaScript navigation controls. No heavy libraries. - Loop functionality – Enable infinite scrolling with seamless reset to start/end when reaching boundaries.
- Autoplay support – Automatic slide progression with configurable delay and pause on hover/interaction.
- Smart responsive – Automatically handles visible columns, spacing, and control sizes according to WordPress breakpoints (1280, 1024, 782, 600, 480, 375).
- Two width modes – Manual mode (fixed column count) and Auto mode (fixed width like 320px) with automatic detection.
- Gutenberg block spacing detection – Respects
gapandpaddingvalues defined in the block editor, including presets. - Theme colors – Buttons automatically inherit your theme’s colors and radii (via CSS variables).
- Intact semantics – Your Gutenberg block’s tags and classes remain unchanged: perfect for SEO, schemas, and E2E testing.
- WooCommerce friendly – Query Loop can target the
productpost type, so WooCommerce grids become CSS-only carousels without a dedicated Products block integration.
Native Gutenberg block workflow
- Add or edit one of the supported blocks (Gallery, Group, or Query Loop/Post Template).
- Enable the Carousel option in the Gutenberg sidebar panel (Layout or Block section depending on the block).
- Adjust your usual settings (column count, minimum width, spacing, alignment).
- Save: your block becomes a touch-friendly, accessible, and SEO-friendly carousel slider.
Advanced customization
- Loop mode – Enable infinite scrolling: when reaching the end, the carousel seamlessly resets to the beginning (and vice versa). Navigation buttons remain active at all times.
- Autoplay – Automatic slide progression with configurable delay (default: 3000ms). Autoplay pauses on hover and user interaction, and stops at the end when loop is disabled.
- Manual mode (fixed columns) – Ideal for article carousel sliders: 1 to 6 columns depending on screen sizes.
- Auto mode (fixed width) – Perfect for card-based sliders (posts, testimonials, product highlights) with pixel-perfect widths like 280px, 320px, or 360px.
- Padding and gaps – Automatic management via CSS vars
--carousel-padding-*,--wp--style--block-gap. - Themes &
theme.json– Override variables to align controls with your design system. - Cross-browser compatible – Works seamlessly on Chrome, Firefox, Safari, and all modern browsers with real HTML navigation controls.
Technical architecture
render_blockhook to inject variables based on context (block type, columns, gaps).- Dedicated service for translating labels and help messages.
- Separate editor/frontend styles for a transparent Gutenberg experience.
- Code organized by PSR-4 services.
How to use the plugin
- Install and activate Any Block Carousel Slider from the Plugins screen (Plugins Add New search Install Activate).
- Open the block editor, insert one of the supported blocks (Query Loop/Post Template, Group, Gallery), and toggle the Carousel option in the sidebar.
- Ensure the carousel-enabled block sits inside a parent Group (or similar container) so the wrapper can manage overflow, spacing, and arrow positioning properly.
- Switch the block layout to Grid then adjust the column count to match your design.
Developer Notes
GitHub Repository
Source code is available on GitHub: https://github.com/WEBLAZER/native-blocks-carousel
Contributions
Contributions are welcome! You can:
* Open a GitHub ticket to report a bug or suggest an improvement.
* Propose a Pull Request.
* Help with translation (.po files available in languages/).
Available hooks
The plugin uses the render_block hook to dynamically inject CSS variables based on the current block.
Main CSS Variables
Layout & Spacing:
* --wp--style--block-gap – Spacing between elements (responsive).
* --carousel-min-width – Minimum width for grids in Auto mode.
* --carousel-grid-item-width – Item width in Manual mode.
* --carousel-padding-left, --carousel-padding-right, --carousel-padding-top, --carousel-padding-bottom – Detected padding.
Navigation buttons:
* --carousel-button-bg, --carousel-button-color – Colors auto-detected from theme.
* --carousel-button-size – Button size (3rem 1.75rem).
* --carousel-button-offset – Lateral offset based on container width.
* --carousel-shadow – Shadow applied to controls.
Markers (dots):
* --carousel-marker-size – Marker size.
* --carousel-marker-gap – Horizontal spacing.
* --carousel-marker-bottom-offset – Vertical position.
Miscellaneous:
* --carousel-z-index – Display priority (default 999999).
* --carousel-transition-duration, --carousel-transition-easing – Animation smoothness.
Credits
Developed with ❤️ by Arthur Ballan (WEBLAZER)
Written by Joobi from the project's own listing. See the source page
2.2.4 – 2026-11-26
- ☕ Support: Added Ko-fi donation link to the review notice and plugins screen to support independent development.
2.2.3 – 2026-11-26
- ✨ Feature: Added full support for the Columns block (
core/columns), enabling responsive swipeable carousels on multi-column layouts. - ✨ Feature: Added new “Mobile only” option to transform blocks into carousels on mobile screens (< 782px) while preserving 100% native WordPress layout on desktop.
- 🎨 CSS: Complete architecture refactoring with a unified mathematical column sizing formula (
--abcs-cols) and shared responsive calculations. - 🎨 Theme Styles: Enhanced button color detection to support block-level button styles (
styles.blocks.core/button) alongside element-level styles (styles.elements.button). - ♿ A11y & Motion: Integrated
prefers-reduced-motiondetection in JavaScript. Disables autoplay and switches smooth scrolling to instant scrolling for users sensitive to motion. - 🚀 Compatibility: Verified compatibility up to WordPress 7.2.
- 🛠️ Gutenberg: Hardened
ToggleGroupControlintegration with resilient fallback for upcoming WordPress editor releases. - 🌐 I18n: Updated translation catalogs (POT, PO, MO) for French, German, and Spanish.
- 🧹 Plugin Check: Removed redundant “Tested up to” declaration from main PHP file header to adhere to modern WordPress standards.
2.2.2 – 2026-11-19
- 🍏 Safari: Fixed dual gap values shorthand in Safari (e.g. “19.2px 19.2px”) that invalidated CSS calc() slide widths.
- 🔄 Autoplay: Fixed loop rewind when slides reach the end of the carousel (especially for full-width post content).
- 🧹 Clean: Standardized all internal code comments to English.
2.2.1 – 2026-11-19
- 🌐 RTL: Full Right-to-Left language support (Persian, Arabic, Hebrew) with native scroll normalization.
- 🐛 Fix: Fixed navigation arrows state and loop behavior in RTL direction.
- 🎯 Markers: Fixed pagination dots click alignment and real-time active slide tracking for both LTR and RTL.
- ⌨️ A11y & Autoplay: Adapted keyboard navigation and autoplay scrolling to RTL reading direction.
- 🌍 I18n: Added German (de_DE) and Spanish (es_ES) language packs.
2.2.0 – 2026-09-17
- ✨ Feature: Added non-intrusive admin review prompt requesting user feedback and 5-star ratings on WordPress.org after 14 days of use.
- 🐛 Fix: Resolved Gallery block width calculation issues when row and column gaps differ (–carousel-gap-x).
- 📱 Responsive: Enhanced mobile layout for Gallery blocks (defaults to 2 columns per view with gap calculations below 600px).
- 🌐 I18n: Added complete French (fr_FR) translation support for admin notices, block settings, and WordPress.org strings.
- 📝 ASO: Updated plugin title, tags, and short description for better WordPress.org search discoverability.
2.1.1 – 2026-08-25
- 🔧 Maintenance: Updated WordPress compatibility up to 7.1.
2.1.0 – 2026-06-16
- 🚀 Refactoring: Modernized codebases to clean ES6 Javascript and consolidated redundant utility logic in carousel-shared.js.
- ♿ Accessibility: Implemented full ARIA roles, tabindex, dynamic states, and support for keyboard Arrow navigation with infinite loop controls.
- 🎨 Gutenberg Customization: Added native PanelColorSettings for buttons background and SVG color, RangeControl for arrow horizontal offset, and alignment/style settings for pagination indicators (Dots vs Lines).
- ⚡ Performance: Replaced ratio-based IntersectionObserver highlighting logic with distance calculations for pixel-perfect active marker highlights on multi-column viewports.
- 🧹 Simplification: Removed hardcoded Cover block padding exceptions in CSS and Javascript, allowing standard block properties and custom arrow offset controls to determine spacing.
2.0.4 – 2026-06-12
- 🐛 PHP: Fixed an Array to string conversion warning when using split block spacing/gap settings on parent blocks (e.g., core/group, core/columns).
- 🔧 Maintenance: Bumped version to 2.0.4.
2.0.3 – 2026-06-05
- 🎨 CSS: Added container padding reset for carousels containing Cover blocks (
.wp-block-cover) to allow images to stretch full-width. - ⚡ Editor: Implemented a robust padding resolver (
resolveEditorPadding) in the Gutenberg editor to retrieve original spacing settings from block attributes and inline element styles, preventing arrows from collapsing to the edge. - 🐛 JS: Fixed a scope reference bug where Gutenberg’s change listener could not access the color synchronization routine, preventing
checkAndUpdateColorsReferenceErrors in the console. - 🔧 Maintenance: Bumped version to 2.0.3.
2.0.2 – 2026-06-04
- 🎨 CSS: Adjusted responsive marker sizes and gaps in carousel.css.
- 🔧 Maintenance: Bumped version to 2.0.2.
2.0.1 – 2026-06-03
- 📝 Documentation: Updated plugin headers, README, and readme.txt to align with v2.0.0 features.
- 🎮 Playground: Switched to database-driven homepage layout with templates/index.html to match the test site.
- 🔧 Maintenance: Shortened the readme.txt short description to comply with WordPress.org 150-character limit.
- 🛠️ Tooling: Added update-playground.sh utility for seamless synchronizations.
2.0.0 – 2026-05-22
- 🌐 Major: Navigation buttons and pagination dots are now real HTML elements for full cross-browser compatibility.
- ✅ Works seamlessly on Chrome, Firefox, Safari, and all modern browsers.
- 🎯 Clickable pagination dots with active slide tracking via IntersectionObserver.
- ♿ Improved keyboard accessibility with focusable buttons and ARIA attributes.
- 🧹 Removed dependency on experimental CSS
::scroll-buttonand::scroll-markerpseudo-elements. - 🚀 Simplified loop logic with direct button click handling.
1.0.5.4 – 2026-04-16
- ✅ Verified compatibility with WordPress 7.0 (Gutenberg Phase 3: Collaboration).
- 🚀 Maintenance release.
1.0.5.3 – 2026-03-11
- 🎨 Removed redundant parent positioning CSS rule for better theme compatibility.
1.0.5.2 – 2026-03-11
- 🧹 Removed default “Hello World” post from playground.
- 🎨 Fixed site icon (favicon) in playground demo.
1.0.5.1 – 2026-03-11
- 🎮 Added official blueprint.json for ‘Live Preview’ button on WordPress.org.
- 🔗 Improved playground link formatting.
1.0.5 – 2026-03-11
- 🎮 Added official WordPress Playground interactive demo.
- 🏷️ Maintenance and performance optimizations.
1.0.4.4 – 2026-03-05
- ✨ Improved button color synchronization in the Site Editor (FSE).
- 🎨 Carousel buttons now directly follow global theme styles by reading WordPress CSS variables (
--wp--style--elements--button--color--*). - 🛡️ Enhanced editor reliability: dedicated hidden reference button prevents picking up custom block-level colors.
- 🛠️ Robust iframe detection in the Site Editor for perfect WYSIWYG experience.
1.0.3.5 – 2025-11-14
- ♻️ Align plugin text domain with official WordPress.org slug.
- 🧼 Renamed local plugin/SVN directories to remove text-domain lint warnings.
1.0.3.4 – 2025-11-14
- 🏷️ Published the 1.0.3.4 release tag on WordPress.org.
1.0.3.3 – 2025-11-13
- 🔗 Simplified WordPress Playground link in “Try it now” section.
- 📝 Updated readme.txt to refresh WordPress.org cache.
1.0.4.3 – 2026-02-08
- 🛡️ Security: Added direct access protection to all PHP files.
- 📝 Documentation: Corrected WordPress version compatibility format.
- 🏷️ Maintenance release.
1.0.4.2 – 2026-02-08
- 🛠️ Compatibility with WordPress 6.9.
- 🏷️ Maintenance release.
1.0.4.1 – 2025-01-XX
- 🐛 Fixed CSS: commented out scroll-snap-stop to prevent blocking behavior.
- 🐛 Fixed CSS: changed scroll-snap-align from center to start for better alignment.
1.0.4 – 2025-01-XX
- ✨ Added Loop functionality: infinite carousel scrolling with seamless reset to start/end.
- ✨ Added Autoplay functionality: automatic slide progression with configurable delay.
- 🎯 Loop keeps navigation buttons visible even at carousel boundaries.
- ⏱️ Autoplay respects configured delay before resetting when loop is enabled.
- 🎨 Improved scroll detection to ignore scroll-snap micro-adjustments.
- 🐛 Fixed premature reset triggers when scrolling towards carousel end.
- 🛠️ Enhanced boundary detection for better loop and autoplay behavior.
1.0.3.2 – 2025-11-13
- 🎮 Added WordPress Playground demo with pre-configured carousel examples.
- 🔗 Updated “Try it now” section with interactive demo link.
1.0.3.1 – 2025-11-13
- 📝 Updated readme.txt to refresh WordPress.org cache.
1.0.3 – 2025-11-13
- 🔄 Plugin rebranded from “Native Blocks Carousel” to “Any Block Carousel Slider”.
- 🐛 Fixed dynamic arrow style updates in the Gutenberg editor (now works correctly in iframe contexts).
- 🎨 Improved block detection across editor iframes for better arrow icon synchronization.
- 🛠️ Enhanced multi-context carousel updates for Site Editor and Block Editor compatibility.
1.0.2 – 2025-11-13
- ✨ Added dedicated toggles in the inspector to show or hide arrows and pagination markers independently.
- 🎯 Introduced
carouselShowArrowsandcarouselShowMarkersblock attributes for fine-grained carousel controls. - 🎨 Synced editor and frontend behaviors for the
abcs-hide-arrowsandabcs-hide-markersclasses. - 🛠️ Bumped plugin version and refreshed asset headers.
1.0.1 – 2025-01-24
- ✨ Added Auto mode (fixed width) for Post Template and Group blocks.
- ✨ Smart mode selection based on Gutenberg settings.
- 🎨 Complete horizontal/vertical padding management via CSS variables.
- 🎨 Buttons and markers automatically adapt to custom spacing.
- 📱 Fixed width respected even on mobile thanks to
min()andclamp(). - 💬 Enhanced contextual messages in the editor to guide mode selection.
- 🚀 Optimized editor JavaScript service to limit memory footprint.
- 🐛 Fixed control positioning with asymmetric padding.
- 🛠️ Internal refactor: PSR-4 autoload, modular services, front/editor separation.
1.0.0 – 2025-01-10
- 🎉 Initial version available on WordPress.org.
- ✅ Support for Gallery, Group, and Query Loop/Post Template blocks.
- 🎯 Automatic column and block spacing detection.
- 📱 WordPress standard breakpoints integrated (1280 375).
- 🎨 Responsive buttons and markers (3rem 1.75rem, 0.66rem 0.35rem).
- 🚀 No JavaScript dependencies on frontend (100% native CSS).
- ♿ Keyboard navigation, respects
prefers-reduced-motion. - 🔄 Multi-carousel compatibility on the same page.
Follow this listing's changes (Atom feed)