Advanced Bootstrap Blocks


This plugin adds flexible Bootstrap 4 blocks to the WordPress editor for creating custom page layouts with the Bootstrap grid.

Are you using Advanced Bootstrap Blocks? Write a review!


Advanced Bootstrap Blocks adds the following Bootstrap 4 blocks to the WordPress editor:

  • Container (fixed-width or fluid, with background image settings)
  • Row
  • Column
  • Button and Button Group
  • Card with Header, Body, Footer
  • Jumbotron

Block Templates

Do you need to create standard block layouts for WordPress pages and posts? The WordPress editor lets you define custom block templates inside your theme.

The example below may get you started. Visit the WordpPress Block Editor Handbook to learn more about supercharging your WordPress themes with blocks templates.

if(in_array('advanced-bootstrap-blocks/advanced-bootstrap-blocks.php', apply_filters('active_plugins', get_option('active_plugins')))){ 
    // do stuff only if the Advanced Bootstrap Blocks plugin is active              
    add_action( 'init', 'advancedbootstrapblocks_register_page_template' );
    function advancedbootstrapblocks_register_page_template() {
        $post_type_object = get_post_type_object( 'page' );
        $isFluid = get_theme_mod( 'understrap_container_type' ) === 'container-fluid'; 
        $post_type_object->template = [
            [ 'advanced-bootstrap-blocks/container', 
                ['className'=>'py-5', 'isWrapped' => $isFluid, 'isFluid' => false ], 
                    [ 'advanced-bootstrap-blocks/row', 
                            [ 'advanced-bootstrap-blocks/column', 
                                ['className'=>'col-md-8 offset-md-2 text-center'], 
                                        [ 'className' => 'display-4', 'level' => 1, 'placeholder' => 'Hello, World!', ], 
                                    [ 'core/paragraph', 
                                        ['className' => 'lead', 'placeholder' => 'Lorem ipsum dolor sit amet.', ], 




  • Row (BS)
  • Advanced Bootstrap Blocks
  • Column (BS)
  • Jumbotron (BS)


Does this plugin add Bootstrap styles or scripts to my theme?

This plugin does not add Bootstrap stylesheets or scripts to your website.

This plugin is giving me trouble. Can you help?

Yes. Please submit issues, bugs, and feature requests through the plugin support page.


this plugin is very nice, and the code is written in human readable language and clean.
A plugin that I use for all my themes for its intuitive and especially for the clean code that it generates. Not a big machine like some plugin that put you 10 div for a paragraph... In short, one thing that is sorely lacking is the possibility of adding a block (div) in a column. Please for the next update? !! Thank a million!
This is really well done, it does lack some features to become perfect, and has some issues with the editor (columns chaos if multiple classes are set) but it works perfectly. By far the fastest way to get Bootstrap into Gutenberg : THUMBS UP
Very good plugin for my Bootstrap theme, i recomend this plugin for all users who used our Bootstrap theme. Clear code, only bootstrap classes.
from me 5 stars - (i would give even more if it would be possible) this is a truely great plugin, You can use it for many purposes. It works great right out of the box, but is very easy to customize to suit your needs. my current use-case: i use this plugin to power up my page - which has visitors from several european Countries. I’m using this plugin to manage a small job-site: And i have to say: I love this plugin. And when it comes to support: this is great. The developer helps alot and comes up with great support. Awesome job - keep it up!!


“Advanced Bootstrap Blocks” 是开源软件。 以下人员对此插件做出了贡献。




  • Bugfix: image alignment within blocks
  • Update: replace build process with @wordpress/scripts
  • Update: update deprecated functions (withState -> useState, block_categories -> block_categories_all)


  • Bugfix: fix right-hand props.className assignment in editor.BlockListBlock filters


  • Bugfix: remove forced Column padding reset
  • Bugfix: fix Card Header content bug
  • Bugfix: assign key to to mapped values in padding + margin inspectors


  • Bugfix: improve drag/drop Container block behavior in WordPress v5.5.1
  • Adjust visibility of blocks with .modal and .d-*-none classNames


  • Add Jumbotron block
  • Remove allowed block restriction from Container


  • Remove default block classnames
  • Improve editor block outlines
  • Legacy support for wp 5.1+
  • Bugfix: fix issue with inline svg icon


  • Hotfix: Fix and improve missing block outlines in WP 5.4
  • Improve Column block display


  • Feature: Add Offset controls to Column inspector


  • Feature: Add Column class controls
  • Add block template example to README


  • Bugfix: Remove unsupported regex from Padding and Block margin controls


  • Feature: Add Block Padding and Block Margin controls
  • Bugfix: Improve ‘Bootstrap Classes’ filtering
  • Bugfix: Fix bad link in README


  • Bugfix: Remove front-end dependency injection


  • Bugfix: Add outline to Row and Column blocks outside of Container


  • Bugfix: Prevent long words from forcing Column blocks onto next row


  • Bugfix: Add’l fix to save Anchor (ID) when added to Container


  • Bugfix: Save Anchor (ID) when added to Container, Row, Column, and Button blocks


  • Add Anchor (ID) support to Container, Row, Column, and Button blocks
  • Bugfix: allow blocks to be dropped in empty Column blocks


  • Override block outlines with original outline colors
  • Replaced icon on all blocks with Bootstrap-branded icon
  • Updated default state of Card block to match basic Bootstrap 4 example
  • Retitled Container “Background Settings” to “Background Image Settings”
  • Minor changes to block editor UI


  • Added Button Group block
  • Removed colored block outlines (made redundant by WP 5.3 release)
  • Modified initial state of Container block (defaults to 3 columns)
  • Modified initial state of Card block (includes Card Header, Card Body, and Card Footer)


  • Removed vertical margin from blocks in WordPress v5.3


  • Added Card, CardHeader, and CardBody blocks
  • Added Bootstrap Classes inspector utility for toggling BS4 classes


  • Added background size, repeat, and position settings to Container Background Image settings
  • Fixed namespacing and inheritance issues with editor-specific Bootstrap grid styles
  • Removed unneeded wrapping div from around Container in WP editor


  • Fixed bug with Container save markup
  • Fixed bug with Button text state


  • Added background-image selector to Container block (adds style="background-image:url();" to Container markup)


  • Refined Button block (add URL picker, button text is directly editable)
  • General UI improvements


  • Made column .offset-* classes available in editor
  • Updated Button editor UI (per standards in WP editor handbook)
  • Improved block selection w/ CSS pointer-events


  • All Bootstrap styles now included in editor by default (this may change in the future)
  • Fixed bug with omission of custom container classNames in editor
  • Increased padding around main container layout


  • Added basic Button component (with style, block, size, outline, new-window settings)
  • Minor README changes