Banner
This article shows you how to create and edit the site-wide banner.
Last updated
This article shows you how to create and edit the site-wide banner.
Last updated
The site wide-banner is created using a custom 'Banner' block. The block allows you to select an image display type, set a theme, add a background image with an optional blend mode, and a featured image.
CivicTheme provides one site-wide banner block out of the box. This banner block is shown on every page by default. You can edit this existing Banner block to use on your site or create a new one.
You can override parts of the site-wide banner on a per-page basis. You can also add banner components to the banner on a per-page basis.
Depending on the size of the site you may require more than one site-wide banner block to be used on different sections of the site. If this is the case, the site administrator will need to select which parts of the site to display which banner block.
If you create a site-wide banner that includes an image, you can't switch the image off on per-page basis. You can select a different image and override the site-wide image, but if you want only your landing pages to display a banner image and your content or child pages not to, do not include an image in the site-wide banner. Instead, add the image on a per-page basis to your landing pages such as homepage and level 1 landing pages.
Go to Structure > Block layout or /admin/structure/block/block-content
Select the 'Custom block library' tab.
Look for 'Banner' in the list of blocks (or use the 'Block type' filter and filter for 'Banner') and select 'Edit'.
'Block description' is the name of the block. It doesn't display anywhere on the website front end. This can be renamed if you wish.
Set the 'Type'. This will be set to 'Default'. Changing to 'Large' will create a diagonal crop effect on the bottom of the background image and change the shape of the featured image (if you have added one).
Select a 'Theme', Light or Dark. This affects the background image and the text on the banner. Note: if you choose to add certain banner components (such as a 'Content' component) to individual page banners whilst still inheriting some aspects of the site-wide banner, you will need to pay attention to the theme you have selected on the site-side banner and the theme you select on the components as the text colour on the banner may be affected.
Add a background image. By default your CivicTheme site will display a solid colour in the banner background area. The colour will depend on the theme and colours you've chosen for the site. You can override the background colour by adding an image. The theme chosen above will affect this image.
Select a 'Blend mode'. This is optional and creates subtle filters on the background image.
Add a 'Featured image' if you wish. This will display on the right side of the banner, on top of the background image.
Go to Structure > Block layout or /admin/structure/block/block-content
Select the 'Custom block library' tab.
Click the 'Add custom block' button.
Select 'Banner'.
Give the block a name in 'Block description' then follow the instructions to edit an existing banner from step 5.
The below banner demonstrates:
'Type' set to 'Large'. Note the diagonal crop effect on the bottom of the background image, the shape of the feature image and the coloured block effect behind it.
'Theme' set to 'Dark'.
Background image added.
'Blend mode' set to 'Soft light'.
'Featured image' added.
The banner below demonstrates:
'Type' set to 'Default'. Note the effect this has on the background image and the feature image compared to the example above.
'Theme' set to 'Light'. Note the change to the background image and the text colour.
Background image added. This is the same background image as the example above.
'Blend mode' set to 'None'.
'Featured image' added. This is the same featured image as the example above.