Creating our Jumbotron Block
The Jumbotron Block consists of three fields: Heading, Summary, and Button. We will take advantage of custom block types to create our new block, which we can then use to create a Twig template that contains the proper markup for Bootstrap to display the content as shown previously.
Step one - Creating a custom block
Navigate to /admin/structure/block/block-content/types
and perform the following tasks:
- Select the
Add custom block type
button. - Add a
Label
: Jumbotron. - Select the
Save
button. - Select the
Manage fields
button next to the Jumbotron Block Type. - Add the following fields:
- Headline: Text (plain)
- Button: Link
- Select the
Manage form
display tab. - Reorder the fields:
Block description
.Headline
.Body
.Button
.
- Select the
Manage display
tab. - Reorder the fields:
Headline
.Body
button.
Step two - Adding a new Jumbotron block
Navigate to /admin/structure/block/block-content
and perform the following tasks:
- Select the
Add custom block
button. - Select
Jumbotron.
- Add a
Block description...