Loading...
Bootscore v6.2.0 is here! Learn more

Documentation Theme

Block patterns

Utilize prebuilt Bootstrap block patterns to quickly wireframe, design, and structure your content.

How it works

Thanks to editor-styles, it is possible to replicate the frontend view in the backend and create patterns using the block’s advanced tab:

Block Advanced tab

For example, change the alert-info class to alert-success to display a green alert. More complex patterns such as grids, cards and heroes are built using nested group-blocks.

The patterns are named to three different categories:

  • l – Layout patterns like container and grids. Layout patterns use the <div> tag.
  • c – Component patterns that can be added directly to the content if the content is wrapped in a container. Component patterns use the <div> tag.
  • s – Full-width section patterns that include a container inside. Section patterns use the <section> tag and should be used on the page-blank template.

hide-wp-block-classes

Patterns are built using the Group block and WordPress adds classes (and sometimes styles to them), such as is-layout-flow, wp-block-group-is-layout-flow, is-layout-constrained, -is-layout-constrained, wp-block-heading, etc., to the blocks.

Adding the class hide-wp-block-classes to a parent wrapper will remove all these additional classes and will also apply to child elements, resulting in a clean HTML output.

Note that these classes are only removed in the frontend. There may be some minor styling inconsistencies in the block editor (backend).

Inspect both of the following patterns to see the difference in HTML output:

Without

hide-wb-block-classes class.

With

hide-wb-block-classes class.


Usage

To select a pattern in the post/page edit screen, click the + button on the top left > Patterns > Bootscore, and choose a pattern.


Patterns

Layout

Container

Wrap content in a container on page-blank template.

This is a container

Grid

Grid examples are built with group-blocks rows, and nested columns. Change the col classes in the group block’s Advanced tab, delete the placeholder, and fill it with your content.

3/3/3/3

col-md-6 col-lg-3

col-md-6 col-lg-3

col-md-6 col-lg-3

col-md-6 col-lg-3

6/6

col-lg-6

col-lg-6

4/8

col-lg-4

col-lg-8

8/4

col-lg-8

col-lg-4


Alerts

Alert examples that simply use classes in the block’s Advanced tab. You may want to take a look at our alert-icon classes to modify alerts in more detail.

A dismissing danger alert with an icon and a link.

A simple info alert with a link.


Buttons

Simple button examples, links and classes must be edited in HTML view.

Button Button Button


Cards

Basic

Some card examples, built with group blocks, that are good to use in the sidebar widget area in combination with blocks.

Card title

Some quick example text to build on the card title and make up the bulk of the card’s content.

Button

Card header

Card title

Some quick example text to build on the card title and make up the bulk of the card’s content.

Button

Pricing

Prebuilt grid with cards inspired by Bootstrap’s pricing example.

Free

$0/mo

  • 10 users included
  • 2 GB of storage
  • Email support
  • Help center access

Sign up for free

Pro

$15/mo

  • 20 users included
  • 10 GB of storage
  • Priority email support
  • Help center access

Get started

Enterprise

$29/mo

  • 30 users included
  • 15 GB of storage
  • Phone and email support
  • Help center access

Contact us


Heroes

Enhance your homepage with hero components.

Jumbotron

Basic jumbotron

This is a simple Bootstrap jumbotron, recreated with built-in utility classes.

Hero image left

Hero

This is a two column hero with left aligned image and CTA buttons.

Button Button

Hero image right

Hero

This is a two column hero with right aligned image and CTA buttons.

Button Button


Sections

Use prebuilt full-width sections with the page-blank template to quickly create landing pages with the components above.

Section with heading

Section with heading

This is a section with heading and subtitle wrapped in a container. Use it on the page-blank template.

Some content inside the container.

Section with jumbotron

Section jumbotron

This is a section with a simple centered jumbotron pattern wrapped in a container. Use it on the page-blank template.

Button Button

Section with hero image left

Section with hero

This section features a two-column hero with a left-aligned image and CTA buttons wrapped in a container. Use it on the page-blank template.

Button Button

Section with hero image right

Section with hero

This section features a two-column hero with a right-aligned image and CTA buttons wrapped in a container. Use it on the page-blank template.

Button Button

To top