Using BlocksUsing Blocks
A block is a widget or a container for content. For example, if you wanted to display a Donate button in the right side bar of every page of your site you could do this with a block. Other common uses for blocks include displaying ads, embedding a newsletter sign up form, showing a list of recent comments, showing a list of related links, etc… You can display a block in the left and right side bars of your site and in other regions of your site that are provided by your Drupal theme.
Add a Block
Go to Site building > blocks > add block
The block description is shown on the blocks page to help you identify the block.
The block title will display on your website above the content you put in the block body. Leave this title blank if you do not wish to show a block title.
Enter your content here such as text, links, images, etc…
Use the default input format unless you are an advanced user. For security purposes, never give full html or php input permissions to non-trusted users.
Custom theme (available for some themes)
You can assign a style to your block such as a white back ground, gradient background, solid color background, or a bordered title with no background. Leave this option set as none if you do not want to use a block style. This option is not available for all themes.
User specific visibility settings
Ability to give users the option to show or hide blocks. Most people use the default setting: Users cannot control whether or not they see this block.
Role specific visibility settings
If you only want a block to show for a specific user role then you can check the box beside of the user role and the block will not show to any other user roles. If you want the block to display for everyone then leave all boxes unchecked.
Page specific visibility settings
Use this setting to control what pages of your site the block displays on. If you want a block to show on your home page only then check the radio button that says “Show on only the listed pages.” and in the Pages field type . For other pages of your site you only need to put the ending part of the url. For example if you have a url such as: mysite.com/about-us - then you only need to type: about-us
Assign a Block to a Region
Go to Site building > blocks
You’ll see several yellow bars that represent the regions of your theme. Regions are designed to allow you to display blocks in specific parts of your website. For example there is a region called Right sidebar. If you assign a block to this region the block will show on the right side of your page according to the block visibility settings you defined. There are 17 total regions. You will not need most of them but they are there just in case you need added flexibility to display content.
Edit or Delete a Block
There are two options for editing and deleting blocks.
- Go to Site building > blocks, locate the block and click the configure link.
- Browse to a page on your website that displays the block > hover your mouse over the block and you’ll see a link pop up that says “edit block” > click this link and you’ll have the option to edit or delete the block on the next page.