Blocks are boxes of content that can be displayed in regions on a page. You can adjust the size, shape, appearance, position, and which page or pages the block appears on.
Instructions
Create New Block
Go to Structure > Blocks > Add Block
Set Machine name
Machine names must be written using only lower case letters and numbers, no punctuation is allowed, words are separated with underscores. Make the Machine name and Block description match except for the formatting restrictions.
Leave Block title blank unless you want to add a visible title users can see
Set Block description
In the Block body editor, toggle Source mode, all other editor options will be grayed out and the body displays line numbers
Add your desired HTML to the Block body
Set the Text format field to Full HTML
Assign desired CSS class(es) separated by spaces
Under Region settings, assign a region
If you are creating the block for strictly JavaScript, it should be set to the Footer region.
Under Visibility settings > Pages > Show block on specific pages, select which pages you wish to add the block to
All pages except those listed
Only the listed pages
Click Save block
Related Articles
Select the table below to edit…
0 Comments