8.2. Creating A Custom Block

Last updated on
14 April 2025

Goal

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

Steps

  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 Bagian 8.3, “Placing a Block in a Region” for details.

 

This page is generated from AsciiDoc source from the User Guide. To propose a change, edit the source and attach the file to a new issue in the User Guide project. PDF and e-book formats are available on the User Guide project page.

Source file: block-create-custom.asciidoc

Help improve this page

Page status: No known problems

You can: