Skip to main content
Drupal Documentation for SCLS

Main navigation

  • Home
  • How-To Info for Library Staff
  • Drupal 10
  • Help

Breadcrumb

  1. Home
  2. How-To Info for Library Staff
  3. Blocks

Adding blocks

Blocks can be added through the Block layout tab's "Place block" buttons or through the Custom block library tab's "Add custom block" button.

Adding a block and placing it in a region of the page

  1. Go to Manage > Structure > Block layout.

    Image
    The Block layout page lists regions with a Place block button for each region
  2. Choose the region where you want to add a block and click the Place block button next to it.

    Image
    Click the Place block button next to the region where you want the block to appear
  3. In the modal dialog, click Add custom block. (If you are adding an existing block, find it in the list and click the Place block button and skip to Step 10.)

    Image
    A modal with existing blocks and a button labeled Add custom block
  4. If more than one custom block type is available, select the type of custom block. If only one custom block type is available, the "Basic" type will be selected by default.

    Image
    Unless otherwise instructed, choose Basic for the type of custom block
  5. The add block screen will display.

    Image
    The Add screen has the following fields: Block description, Body, Text format, Revision information
  6. Block description: A brief description that will show on the Custom block library administration page. Use a description that will be memorable/recognizable for your future self or other staff who manage the website.
  7. If your block will house mainly HTML code (such as an embed code provided by a 3rd-party service), scroll down below the Block body. Under Text format, select Full HTML.
  8. Block body: Enter the block content.
  9. Click Save.
  10. If you initiated the new block from the Place blocks screen, you will have the option to configure the block.

    Image
    The Configure block screen controls the block title, visibility, and region
  11. Title: enter a title for the block. This title will appear on the Block layout administration page and display on the page with the block content.
  12. Display title: Optionally, you may choose not to display the title with the block by un-checking this setting.
  13. Visibility settings: Enter the proper selection(s) to determine which page(s) your block will be displayed on.
    1. To show a block on all pages, accept the default setting for Pages (Keep the Pages box blank; keep "Show for the listed pages" selected).
    2. If you are listing specific pages on your site, use internal Drupal paths (e.g. /online-resources) instead of full paths (e.g. https://www.example.org/online-resources).
  14. Region: Select the region of the page where the block should display.
  15. Click Save block.
  16. Check the page(s) where you expected to see the block to verify that it is set correctly and to make sure you are satisfied with how it is displaying.

I added a block and it looks horrible. Help!

  • If a block is placed a region where it was never part of the original site design, your theme may not include styling to improve this new block's appearance. Refer to Overriding Sitewide Theme Styling.
  • Extra blank space at the bottom of the block: Check the HTML code in the Block body and eliminate extra blank paragraphs or line breaks in the HTML source code that may have been added automatically.

Book traversal links for Adding blocks

  • Blocks
  • Up
  • Editing custom blocks
  • Managing Accounts for Your Drupal Site
  • Images
  • Creating and Editing Website Content
  • Uploading Files to Media
  • Changing Menu Links
  • Creating Photo Albums & Galleries
  • Folders, Directories, and File Structure
  • Blocks
    • Adding blocks
    • Editing custom blocks
    • Managing block layout
  • Paths and URL Aliases
  • Configuring Site Information
  • Developer Permissions
  • Homepage Variations
  • Events/Programs with repeating dates
  • Registration for Events/Programs
  • What is Cron?
  • Avoid mixed content warnings (HTTPS/HTTP)
  • LINKcat Title List (Experimental)
  • Performance settings: Cache pages for anonymous users
  • Slick Carousel
  • Uploading Files with IMCE

Tags

accordion (1)
account (2)
anchors (1)
blocks (0)
cache (1)
carousel (2)
CKEditor (5)
configuration (1)
content types (1)
CSS (1)
disable rich-text (1)
Drupal 10 (15)
Drupal 9 (16)
email (2)
embed code (1)
Entity Registration (5)
events (6)
file browser (1)
files (4)
files media (1)
folders (1)
formatting (2)
front page (3)
Google Analytics (1)
headings (2)
HTML (1)
iframe (2)
images (4)
imce (1)
Layout Builder (3)
link a pdf (1)
links (5)
login (1)
media (2)
menus (3)
nodes (1)
openid (1)
paste as plain text (1)
paths (4)
performance (1)
photo albums (1)
photo galleries (1)
redirects (3)
registration (5)
remove format (1)
repeat dates (2)
reports (1)
revisions (1)
sidebars (0)
site name (1)
slogan (1)
source (1)
sticky (2)
text formats (1)
themes (1)
toolbar (2)
URL aliases (4)
Webform (2)
widget (1)