Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module enhances the output of Gutenberg blocks by providing filters to modify their HTML structure. It can remove specific wrapper elements, replace figure tags with divs, and prepare gallery blocks for integration with Swiper.js. Additionally, it offers options to remove figure tags from image blocks entirely or for specific instances.

This module adds filters to modify the output of Gutenberg blocks.

3 filters are available in In Text formats and editors > Gutenberg Blocks text format (/admin/config/content/formats/manage/gutenberg)

Guttenberg block group

Removes the div.wp-block-group__inner-container wrapper.

Guttenberg block gallery

Replaces the figure.wp-block-gallery wrapper by a div tag
and with 3 classes available

  • the class "swiperjs-player", the structure is prepared for the Swiper.js library.
  • the class "remove-figure", the tag around images is removed in the output.
  • the class "switch-figure-to-div", the figure tag around images is replaced by a div tag.

Guttenberg block image

Two methods are available:

For specific image blocks

Add the class "img-only" to the image block: the wrapper is removed in the output.

For all image blocks

In Text formats and editors > Gutenberg Blocks text format (/admin/config/content/formats/manage/gutenberg),
check the option "Remove all figure around img" in the filter configuration.

Activity

Total releases
2
First release
Jan 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.1 Stable Jan 26, 2026
1.x-dev Dev Jan 26, 2026