8.3. Placing a Block in a Region

Last updated on
14 April 2025

Goal

Place the Opening hours and location block in the website’s sidebar.

Site prerequisites

Steps

  1. In the Manage administrative menu, navigate to Structure > Block layout (admin/structure/block). The Block layout page appears, listing the theme’s regions.
  2. Ensure that in the secondary tab the core Bartik theme is selected. Block placement is defined per theme.
  3. Locate the region Sidebar second in the list and click Place block next to it. The Place block window appears, listing all the blocks.
  4. Locate the block Opening hours and location and click Place block next to it. The Configure block window appears. Fill in the fields as shown below.

    Field name Value

    Title

    Hours and location

    Display title

    Checked

    Region

    Sidebar second

    You can also hide or display the block on specific pages. In the case of the Farmer’s market website you do not set any of these configuration options because you want to show the block everywhere.

    Block configuration page

  5. Click Save block. The Block layout page appears. You can drag blocks to change the order in which they will appear.
  6. Verify that the Opening hours and location block is listed in the Sidebar second region, and click Save blocks.

    The block has been placed on the sidebar of all pages that use the core Bartik theme.

    Page with a block placed on the Sidebar second region

Expand your understanding

  • Remove the Powered by Drupal block from the Footer fifth region by setting the region to - None -.
  • Remove the Tools block from the Sidebar first region by setting the region to - None -. This block is only visible to logged-in users.
  • Place the User login block in a region.
  • If you do not see the effect of these changes in your site, you might need to clear the cache. See Bagian 12.2, “Clearing the Cache”.

Attributions

Written and edited by Boris Doesborg and Jennifer Hodgdon.

 

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-place.asciidoc

Help improve this page

Page status: No known problems

You can: