GB HTML Blocks for Advanced Custom Fields
Flexible Content page sections for ACF PRO: title, intro text and one or two columns. More details: https://gregbialowas.com/acf-page-section
Choix solide
GB HTML Blocks for Advanced Cus… is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 3 weeks ago, and scores 64/100 on our health check.
- Développé activement — Dernière mise à jour il y a 3 semaines
- Testé avec le dernier WordPress (7.1)
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where GB HTML Blocks for Advanced… stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| ACF | >100 |
| Champs personnalisés avancés | >100 |
| blocs | >100 |
| flexible-content | >100 |
| page sections | >100 |
About GB HTML Blocks for Advanced Custom Fiel…
À partir du Lisezmoi officiel · v1.4.2Description
Adds a ready-made “HTML blocks” Flexible Content field group to pages, posts and products and renders it on the front end.
Full guide with screenshots and examples: https://gregbialowas.com/custom-html-blocks-acf-pro
Two layouts inside the field:
* Regular content (“Section Content”): a title, an intro text and one or two columns (image with a caption, title, text and a button in each).
* Hero (“Hero Image/Video”): an image or a looped, muted video, optionally stretched edge-to-edge.
Features:
* Field group loads automatically from the plugin (ACF Local JSON), no import needed
* Section with title, intro and one or two columns, plus an “Options” row (custom CSS classes, column order and widths, remove top margin)
* Per-column image (with caption), title, content, link and alignment
* Images with a caption inside the editor text (insert an image, fill in “Caption”, pick left/right/center): a dedicated html-blocks_page-figure block with the caption below the image; text wraps around left/right images
* “Show on page?” switch, “second column first” (mobile) and “Reverse columns” (desktop) options
* Optional 65/35 column widths
* “Remove top margin”: the section touches the previous one, so several sections look like one block
* Optional “Admin section label”: your own name of the section in the editor (internal only)
* Lightweight CSS (plain CSS, no dependencies), loaded only on pages that use sections
* Readable section titles in the editor: the Admin section label, otherwise the Title, otherwise the first words of the content
* Every block has a place for your own CSS classes (the “Custom class(es)” option), so you can restyle the content and the columns freely in your theme (see “Style it your way” below)
* Template can be overridden in the theme
* Filters and actions for developers
Requires Advanced Custom Fields PRO. The Flexible Content field is not part of the free ACF. If it is missing, the plugin shows a notice in the admin.
Comment utiliser
- Install and activate Advanced Custom Fields PRO, then this plugin.
- Edit a page (or a post). Under the title you will find the “Flex Blocks” field group. Click + New Page Section and choose a layout: Section Content (title, intro text and one or two columns) or Hero Image/Video (an image or a looped video, optionally edge-to-edge).
- Fill in what you need. Empty fields are not printed. The Options row has custom CSS classes, “second column first” on mobile, 65/35 widths, reversed columns and “Remove top margin” (the section touches the previous one, so a few sections look like one block).
- To put an image inside the text, use Add Media, fill in Caption and choose the alignment: the text wraps around it and the caption sits below.
- Update the page. The sections are printed after the page content.
A longer guide with screenshots: https://gregbialowas.com/custom-html-blocks-acf-pro
Style it your way (custom CSS)
Every block has the ability to add its own CSS classes, so you can change the look of the content, the columns, the buttons and the images in your own theme, without touching the plugin. Type your own class in the Custom class(es) option of a section and style it in your theme’s CSS. You can also override the CSS variables (see “CSS variables”) or the classes of the plugin (see “CSS classes”). To use only your own styles, return false from the gb_html_blocks_enqueue_styles filter. You can also override the HTML itself with a template in your theme (see “Theme override”).
CSS classes
Every class generated by the plugin starts with html-blocks_page-section, so it can’t clash with theme classes: html-blocks_page-section, __inner, __content, __columns, __column, __column-content and __button. Section modifier: remove_top_margin. Image with a caption: html-blocks_page-figure (--left, --right, --center, __caption). Hero layout: html-blocks_page-section media (+ is-full-width). Modifiers of the columns wrapper: reversed, desktop-reversed, columns-65-35, hide-second-column. A column also gets its alignment class (to_left, centered or to_right).
Theme override
Copy templates/section.php to {your-theme}/gb-html-blocks/section.php. The theme file is used instead of the plugin one.
CSS variables
Set any of these (for example on :root) to match your theme:
- –gb-section-width (1200px)
- –gb-section-padding (20px)
- –gb-section-spacing (80px)
- –gb-section-gap (clamp(32px, 5vw, 80px))
- –gb-section-color (inherit)
- –gb-section-color-muted (inherit)
- –gb-section-accent (#222222)
- –gb-section-accent-contrast (#ffffff)
- –gb-section-radius (0)
- –gb-section-caption-bg (transparent)
- –gb-section-caption-border (rgba(0, 0, 0, 0.15))
- –gb-section-transition (0.2s ease)
Crochets
Filters:
* gb_html_blocks_field_name ( $name, $post_id ) – name of the Flexible Content field, default html_blocks
* gb_html_blocks_sections ( $sections, $post_id ) – all rows before rendering
* gb_html_blocks_section_visible ( $visible, $section, $index, $post_id ) – show or hide one section
* gb_html_blocks_template ( $file, $layout, $section ) – template path for a layout
* gb_html_blocks_custom_captions ( $enabled ) – use the plugin’s markup for image captions in the sections (default true)
* gb_html_blocks_auto_output ( $enabled, $post_id ) – add the sections after the content automatically (default true)
* gb_html_blocks_section_classes ( $classes, $data ) – classes of the section element
* gb_html_blocks_inner_classes ( $classes, $data ) – classes of the inner wrapper (default: html-blocks_page-section__inner internal --copy, or --contained when $data['_narrow'] is false)
* gb_html_blocks_image_size ( $size, $which, $data ) – image size, $which is first or second
* gb_html_blocks_section_html ( $html, $layout, $section, $index, $post_id ) – final HTML of one section
* gb_html_blocks_enqueue_styles ( $enqueue ) – return false to skip the plugin CSS
* gb_html_blocks_layout_title ( $title, $description, $field, $layout, $i ) – section title shown in the ACF editor
Actions:
* gb_html_blocks_before_section ( $layout, $section, $index, $post_id )
* gb_html_blocks_after_section ( $layout, $section, $index, $post_id )
Example (theme functions.php):
add_filter( 'gb_html_blocks_section_classes', function ( $classes, $data ) {
$classes[] = 'my-extra-class';
return $classes;
}, 10, 2 );
Installation
- Upload the plugin to WordPress and activate it
- Edit a page: the “Flex Blocks” field group appears under the title
-
The sections appear automatically after the page content. To place them yourself, turn the automatic output off with
add_filter( 'gb_html_blocks_auto_output', '__return_false' );and print them in your theme template:
or use the shortcode [gb_html_blocks] (optional: post_id="123"; a shortcode in the content also stops the automatic output for that page).
Journal de modifications
1.4.2
- Removed the section number label (“01 Title”) and the line before the section title: only the title is printed
- Readme: the two layouts described in the Description, clearer text about custom CSS classes
1.4.1
- Readme: short “How to use” guide and a note about styling with custom CSS; plugin page: https://gregbialowas.com/custom-html-blocks-acf-pro
1.4.0
- Images with a caption in the editor fields get the markup
<div class="html-blocks_page-figure html-blocks_page-figure--right"><img><div class="html-blocks_page-figure__caption">…</div></div>(only inside this plugin’s sections; filtergb_html_blocks_custom_captions); left/right images are floated and the text wraps around them (mobile: full width) - The intro and column text containers keep floated images inside
1.3.0
- New layout “Hero Image/Video” (template
media.php): an image or a looped, muted video (the image is its poster), with the option “Is full width?” – the inner wrapper is then 100% of the parent width (edge-to-edge); the section gets the classesmediaandis-full-width - In the editor an unnamed non-section layout shows its layout label
1.2.4
- Code cleanup for the WordPress.org review: direct access guards in all PHP files, template variables kept out of the global scope, translatable fallback title, License URI header
1.2.3
- Editor: the section title has no “Section: ” prefix; empty sections show “(Page Section)”
Captures d'écran
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best GB HTML Blocks for Advanced C… alternatives
Tous les plugins ACF →FAQ
GB HTML Blocks for Advanced Custom…: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is GB HTML Blocks for Advanced Cus… free?
Yes. GB HTML Blocks for Advanced Cus… is free to download and use from the official WordPress.org plugin directory.
Is GB HTML Blocks for Advanced Cus… safe to use in 2026?
GB HTML Blocks for Advanced Cus… is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 3 weeks ago, and scores 64/100 on our health check.
How many websites use GB HTML Blocks for Advanced Cus…?
GB HTML Blocks for Advanced Cus… is active on <10 WordPress websites and has been downloaded 292 times since it launched in November 2026. It was downloaded 294 times in the last 30 days.
Does GB HTML Blocks for Advanced Cus… work with WordPress 7.1?
Yes. The developer has tested GB HTML Blocks for Advanced Cus… up to WordPress 7.1.5, the latest release. It requires WordPress 5.8 or newer.
What PHP version does GB HTML Blocks for Advanced Cus… need?
GB HTML Blocks for Advanced Cus… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was GB HTML Blocks for Advanced Cus… last updated?
The latest version, 1.4.2, was released on November 9, 2026 (3 weeks ago).
Who makes GB HTML Blocks for Advanced Cus…?
GB HTML Blocks for Advanced Cus… is developed and maintained by gregbialowas.
What are the best alternatives to GB HTML Blocks for Advanced Cus…?
The most popular alternatives to GB HTML Blocks for Advanced Cus… are Advanced Custom Fields (ACF… (2M+ installs), ACF Content Analysis for Yo… (100K+ installs) and Advanced Custom Fields: Ext… (100K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
