How To Create Drupal Blocks?

Drupal blocks are primarily the container objects which will be used for organizing the content for a Drupal web site. For example, you’ll create a user login block and add it to your web site footer for your web site users.

Below are the steps required for creating a block in Drupal are mentioned below:

  • From the main menu Click on the ‘Structure’ option.
  • After that click on the option – ‘Block layout’.
  • Here you’ll decide wherever you’d would want to place the block. For example, if you want to place the block within the header region, then you would need to click on the ‘Place block’ choice present next to ‘Header’. You’ll additionally create a customized block by clicking on the option – ‘Add custom block’, you may have to enter the description and therefore the body of the block within the next window.
  • Click on ‘Page Title’, from the list of blocks displayed.
  • Confirm the attributes just like the title, visibility of the block.
  • Finally click on ‘Save block’.