Last updated May 8, 2018


Goal

Create a block showing the hours and location of the farmers market.

Steps

Creating a Custom Block

  1. In the Manage administrative menu, navigate to Structure > Block layout > Custom block library (admin/structure/block/block-content).
  2. Click Add custom block. The Add custom block page appears.
  3. Fill in the fields as shown below.

    Field name Explanation Example value

    Block description

    Name of the block shown to administrators

    Hours and location block

    Body

    Content of the block when it is displayed

    Open: Sundays, 9 AM to 2 PM, April to September<br />Location: Parking lot of Trust Bank, 1st & Union, downtown Anytown.

    Add a custom block

  4. Click Save. A message appears indicating the block has been saved.

Expand your understanding

  • Edit the content of your custom block. In the Manage administrative menu, navigate to Structure > Block layout > Custom block library (admin/structure/block/block-content). Find your block in the list and click Edit to make changes.
  • Place the block you created in the sidebar. See Section 8.3, “Placing a Block in a Region” for details.

Additional resources

Drupal.org community documentation page "Working with blocks (content in regions)"

Attributions

Adapted by Jacob Redding and Boris Doesborg from Working with blocks (content in regions), copyright 2000-2017 by the individual contributors to the Drupal Community Documentation.