Hero paragraph

Exercise: Build the Hero Paragraph

We will build the Hero paragraph first and match our fields to our Hero component's data model.

  • From Drupal's Admin Toolbar, click Structure | Paragraph types | Add Paragraph type

  • In the label field type Hero

  • And click Save and manage fields (we won't add an icon or description)

  • On the Manage fields page, we will add 3 fields:

Label
Machine name
Type

Image

field_hero_image

Entity reference (media)

Heading

field_hero_heading

Text (plain)

Call to Action

field_call_to_action

Link

  • Go to the Manage form display, and change the Image widget to Media Library

  • Make sure to Save

Last updated