Banner component example
Here is an example of what the banner component can look like on a web page.
Watch our training video
Add a banner
To add a banner component to a content page, you need to:
- Navigate to the target page
- If you are adding a banner to the top of a page select the 'Extra content' tab. If not, scroll down to the 'Main content' section of the page
- For page banners select 'Add content' in the 'Above main content' section, otherwise select 'Add content' at the bottom of the 'Main content' section
- This opens the 'Add content' slide-out panel
- From here, select the "Banners" component to open its slide out panel
- Select the "Add Banner" button to add a banner item. A single banner can contain multiple banner items if required
This will open the "Content" tab of the "Banner" component.
Complete the banner item details
Depending on your preference, you can choose to add an image, multiple images, or a video banner to your page. You can customize the banner by completing the following banner details.
Image
If you'd like the banner to appear as an image on the page, you can:
- Navigate to the target page and locate your banner (either in 'Main content' or 'Extra content')
- Open the banner by clicking on it and select the target banner item
- Select the '+' icon next to the 'Image' field
- This will open the 'Media' folder
- From here, choose the folder that contains the image you want to insert
- Select the image you'd like to insert
- Press the 'Select' button
This will add the image to the banner. You can add additional images to a banner item by repeating this process. However, extra images will only appear in the banner on the public page if you set the Banner settings to rotate through multiple images. You can continue to add a heading, text, and settings to the banner, or if you'd just like to display an image, select the 'Create' button to complete the process.
Multiple images in a single banner item or multiple banner items?
To create a rotating banner you can either add multiple images to a single banner item or you can create multiple banner items. Which you use will depend on how you are using banners to present information.
If your rotating banner only contains images, then you can add all the images to a single banner item. In addition, if you are creating a rotating banner with the same headings, text, search option, and buttons on each slide then this can also be a single banner item with multiple images.
If you are creating a rotating banner with different headings, text, search options or buttons on each slide then each entry will have to be a separate banner item.
Video source
You may want to add a video to the banner. There are three types of video formats that you can add in a banner.
YouTube video
If you'd like to insert a YouTube video into the banner, you need to:
- Select the 'YouTube' icon from the 'Video source' field
- This will open a 'Video' field
- Paste the URL for the YouTube video in the 'Video' field. This URL can be found by opening the video on YouTube then copying the URL from the browser address bar
Vimeo video
If you'd like to insert a Vimeo video into the banner, you need to:
- Select the 'Vimeo' icon from the 'Video source' field
- This will open a 'Video' field
- Paste the URL for the Vimeo video in the 'Video' field. This URL can be found by opening the video in Vimeo then copying the URL from the browser address bar
MP4 video file
If you'd like to add an original MP4 video file that is not hosted on YouTube or Vimeo, you can upload the video to Govstack and insert the video into the banner. To do this, you need to:
- Select the 'MP4' icon from the 'Video source' field
- This will open the 'Media' folder
- From here, choose the folder that contains the video you'd like to add to the text area
- Select the video you'd like to insert
- Press the 'Select' button to add the video
This will add the video to the banner. You can continue to add a heading, text and settings to the banner, or if you'd just like to display a video, select the 'Create' button to complete the process.
Video Sizing
For best results we recommend a video with a minimum width of 1920 pixels (a standard 1080p video has a resolution of 1920 x 1080). Narrower videos will show gaps on the left and right of the banner.
Video height should be edited to match the desired viewport size of the banner. Unlike images, videos do not have a focal point to adjust what parts of the video show through the viewport. This means that the only way to control what parts of the video are visible is to match the video size to the viewport size.
The best way to control the video viewport size is to use the Scale banner style setting in the banner item settings. You can then select an Image style setting to best match your video. The following table shows the video resolution for a video with a 1920 width at the various Image style ratios. For 4k and 6k resolutions scale up appropriately.
| Ratio | Width | Height |
| 1:1 | 1920 px | 1920 px |
| 2:1 | 1920 px | 960 px |
| 1:2* | 1920 px | 3840 px |
| 3:1 | 1920 px | 640 px |
| 1:3* | 1920 px | 5760 px |
| 3:2 | 1920 px | 1280 px |
| 2:3* | 1920 px | 2880 px |
| 4:1 | 1920 px | 480 px |
| 1:4* | 1920 px | 7680 px |
| 4:3 | 1920 px | 1440 px |
| 3:4 | 1920 px | 2560 px |
| 16:9 | 1920 px | 1080 px |
| 9:16* | 1920 px | 3413 px |
* These options should not be used; their height values are too large for effective display
Recommended file size for a banner video is between 10 and 15 MB. Maximum size is 150 MB. Note that banner videos don't play sound so removing the audio track may provide better playback and file size.
Headings
If you'd like you can add a heading to a banner image or video. The heading will display over the image or video. If you'd like to add a heading, you need to:
- Add the heading text in the 'Heading' field
- Select the appropriate heading tag or style
If you are adding a heading 1 to your banner remember to turn off your page heading in the content tab.
You can also choose to add a secondary heading by adding text to the 'Secondary Heading' field.
Text
You can choose to insert additional text that will display underneath the heading and over the banner image or video. This text can be used to provide additional instructions or context that accompanies the heading.
Adding large amounts of text to a banner will create an additional scroll bar in the component. To prevent this limit the amount of text added to banners to what will fit in the visible space.
Button
You can also add a button to a banner. This will allow users to select a link and navigate to:
- A different page on your website
- Another website
- A document that you've added to the media folder in Govstack
To add a button to a banner, you need to select the 'Add' button next to the 'Button' field. Then you can style the button and add a link. You can customize the button by:
- Selecting the colour for the button
- Adding an icon to the button
- Changing the size of the button
To add the link to the button, select the 'Add Link' button and insert the link.
Banner item settings
You can adjust the look and layout of the banner item through the banner settings tab. To access the banner settings, select the 'Settings' tab located at the top of the 'Banner' slide-out panel.
From the 'Banner' settings tab, you can customize the look and style of the banner item.
For settings related to the 'Banner' component refer to the Banner settings section of the article.
Review each of the banner item settings to learn more.
Design and Layout
Background color
Select a background and text color for your banner. Background colors are not visible if you add an image to you banner, but the text color for the selected option will still be used. Make sure that the text color used on your banner meets the minimum contrast requirements when compared to your selected background color or image.
Color options
The color options will be based on the design of your website. You may be able to change the design colors depending on your Govstack plan. To get access to the website design features, speak with your GHD Digital Account Executive.
Add color overlay
When active (set to 'Yes') this option will apply a tint to your image based on the color selected in the 'Background color' option. This can help if the text you've added to your banner is difficult to read due to the color or contrast of the image.
Banner style
There are four different banner styles that you can choose from. These styles will customize the size and shape of the banner. You can select one of the following options:
- Takeover - Fills 100% of the screen height
- Medium - Fills 65% of the screen height
- Short - Fills 50% of the screen height
- Scale - Scales the image to fit a selected image style. This option provides the most control. Using 'Scale' combined with the 'Original' Image style will show the entire banner image and allow you to control the size and shape of the banner by editing the original size of the image before it is uploaded. Combining 'Scale' with other Image styles will allow you to control what part of the image displays in the banner by using the focal point in the media section.
Parallax is available on Takeover, Medium, and Short banner styles only.
Parallax
Parallax fixes the banner image to the background so that it does not scroll as the site scrolls. Instead it appears that the website scrolls past the image.
Parallax is available on Takeover, Medium, and Short banner styles only.
The recommended image size for a parallax banner is 2700 x 1800 pixels. Smaller images may show pixelation on larger screen sizes.
Scroll prompt and style
Select the 'Scroll prompt' toggle if you'd like to add a scroll prompt to the banner. Clicking the scroll prompt icon will automatically move site visitors down the page to display the main content area.
If you choose to add a scroll prompt to the banner, you can select one of the following styles from the 'Scroll prompt style' field:
- Arrow - places a small arrow at the bottom of the banner to indicate that users can scroll for more information
- Wheel - places a mouse icon on the banner to indicate that users can scroll for more information
- Line - places a vertical line on the banner to indicate that users can scroll for more information
Text alignment
The 'Text alignment' field allows you to choose the alignment for any content that you add to the banner. This includes, headings, subheadings and text.
You can choose one of the following text alignments:
- Left
- Centre
- Right
As a best practice, we recommend keeping text left aligned or centered rather than right aligned.
Text position
Text position controls the placement of the text container on the banner. It does not affect the alignment of the text itself, only the positioning of the content on the banner. The width of the banner text container can be set in the site's design style in the Spacing > Components > Banner section.
Show search
Show search adds a site search box to the banner. This search tool uses the search settings for the website.
When this option is active you will be asked to select a search results page. If this selection is left empty Govstack will use the default search page indicated in the Global > Settings options.
You will also be able to select a button style for your search selector.
Warning: If you are building a rotating banner with a search make sure that you are using a single banner item with multiple images. Using multiple banner items with a rotating banner will cause the search field to reset each time the banner updates.
Animation
Animate
You can add animation to the component by selecting the 'Animate' toggle. Once the 'Animate' toggle is selected, you'll have the option to customize the:
- Animation style
- Animation delay (seconds)
- Animation duration (seconds)
Animation style
From the 'Animation style' dropdown menu, select the type of animation you'd like to add to the accordion. There are a variety of different animation options in the following categories:
- Attention Seekers
- Bouncing Entrances
- Fading Entrances
- Flippers
- Light Speed
- Rotating Entrances
- Sliding Entrances
- Zoom Entrances
- Specials
Please note, animation styles can cause accessibility issues for some users visiting your website. For example, some users may experience motion sickness when viewing animated elements on your website.
Animation delay
Using the 'Animation delay' slider selects the time in seconds that you'd like to delay the animation once it scrolls onto the visitor's screen.
Animation delay can cause accessibility issues for some site visitors. Certain animation styles and delays can combine to make your animated component invisible to screen readers. Please test your animations to make sure they are accessible.
Animation duration
You can select how long you'd like the animation to last by using the 'Animation duration' slider. Select the number of seconds you'd like the animation to continue on the public website.
Advanced
Name
In the 'Name' field you can give your component a unique name. This will make it easier to differentiate between components, both on your page as well as in your clipboard.
Custom classes
In the 'Custom classes' field, you can add any custom CSS classes you may have. Custom CSS classes can be found in the Design node under the 'CSS' tab in the backend of Govstack.
If you'd like to add more than one custom class, you'll need to leave a space between each class.
Depending on your Govstack plan, you may not have access the Design node in the back office. If you'd like to be able to add custom CSS and access the website design tool, contact your GHD Digital Account Executive.
We cannot guarantee that future updates to Govstack will not break or negatively impact custom CSS.
Hide from website
Turn on the 'Hide from website' toggle if you'd like to hide this component from the web page. Hidden components will not appear on the public site.
Banner settings
These settings apply to the parent Banner component. For settings relate to the sub-component Banner items refer to the Banner item settings section, above.
Design and layout
Enable random order
Select the 'Enable random order' toggle if you want the order of your banner images and videos to be randomized every time a user visits the page.
Show arrows
Select the 'Show arrows' toggle if you'd like to display arrows on the banner to indicate there are additional images or videos.
Show dots
Select the 'Show dots' toggle if you'd like to display dots on the banner to indicate that there are multiple photos or videos in the banner.
Auto rotate speed
Use the 'Auto rotate speed' slider to change the speed that the banner images will rotate. The speed is displayed in seconds.
If you do not want your banners to rotate automatically leave this option set to 0.
Warning: If you are adding search bars to your banners and you are using multiple Banner items do not use auto rotate. The search bar will reset each time the banner rotates, creating a frustrating experience for your site visitors. Rotating banners using a single banner item do not have this issue.
Advanced
Name
In the 'Name' field you can give your component a unique name. This will make it easier to differentiate between components, both on your page as well as in your clipboard.
Anchor name
You can create an anchor link that will link a user directly to the top of this component.
When linking to this page add the anchor to the "Anchor / querystring" field in the "Select link" dialogue box. The link will then jump to the top of the target component rather than to the top of the page.
Note that anchor names are case sensitive. For best results use lowercase characters, numbers, and dashes only. Avoid spaces and special characters.
Custom classes
In the 'Custom classes' field, you can add any custom CSS classes you may have. Custom CSS classes can be found in the Design node under the 'CSS' tab in the backend of Govstack.
If you'd like to add more than one custom class, you'll need to leave a space between each class.
Depending on your Govstack plan, you may not have access the Design node in the back office. If you'd like to be able to add custom CSS and access the website design tool, contact your GHD Digital Account Executive.
We cannot guarantee that future updates to Govstack will not break or negatively impact custom CSS.
Additional styles
You can select additional styles to the component, including:
- Spacing
- Visibility
- Design
Spacing
You can remove the spacing around the component by selecting one of the following options:
- Remove spacing
- Remove spacing top only
- Remove spacing bottom only
Visibility
You can customize the visibility of the component. Select one of the following options:
- Hide on all screens
- Hide on extra small screens
- Hide on small screens
- Hide on medium screens
- Hide on large screens
- Hide on extra large screens
Design
Select one of the following options if you'd like to customize the design of the component:
- Show shadows - this will add a shadow effect to the component. Note that by default most Govstack websites do not have shadows. You can add these in the Design node
- Sticky - the component will stay on the screen even as users scroll down the page
Hide from website
Turn on the 'Hide from website' toggle if you'd like to hide this component from the web page. Hidden components will not appear on the public site.
Preview and publish changes
Once you've added a banner to your page, make sure to preview and publish the page to complete the process.