Hero banner
This guide is for sites built in the new version of Drupal (Study and Scholarships).
If you're working on a Drupal 7 (UQ Standard) site, see hero banners on Drupal 7.
A hero banner is a large image that:
- captures the user's attention and sets the tone for the page
- displays alongside the page's H1 heading (and lead text where relevant).
Together, the image and text should help users understand what the page is about and whether it's relevant to what they're trying to do.
Hero banners change shape depending on what device your user is viewing it on (e.g. mobiles, tablets). It's important to:
- use the right templates to create your banner, following the guidelines for where to place faces and focus points
- check your banner resizes as expected on different screen sizes before you publish.
There are different types of hero banners on new Drupal, depending on the type of content you're working on.
Articles and events use the legacy hero banner. Your chosen image displays with a purple gradient.
Example desktop view
Example mobile view
Step 1: Select your base image
Select an image to feature in your hero banner.
It must be at least 1080px wide x 540px high (this section will display on mobile view).
Step 2: Use the template to create your hero banner
Using the template will ensure the banner displays correctly across various screen resolutions.
- Download the legacy hero template (staff login required).
- Open both the template and your image in Photoshop.
- Copy and paste your image into a new layer on the template.
- Ensure the 'Mask layer' is at the top of the 'Layers' panel.
- Select 'Edit '> 'Free transform' to resize your image proportionally.
- Ensure the base image remains a minimum of 1080px wide (refer to Guide 2 in template guidelines below).
- Ensure the main content (such as faces) sits within the guidelines (refer to template guidelines below).
- Hide the 'Mask layer' by clicking the eye icon to the left of the layer name.
- If the base image isn't at least 1400px wide (refer to Guide 1 in template guidelines below) turn on the purple 'Gradient' layer and drag the 'Gradient' layer above your image layer. If your image is at least 1400px wide, you don't need to add the gradient layer.
When to use the purple gradient
If base image is less than 1400px wide
Turn on the purple gradient layer if your base image is less than 1400px wide.
Don't move the gradient layer further to the right into the 1080px area.
If base image is 1400px wide or larger
Don't turn on the purple gradient layer if your base image is 1400px wide or larger. It's OK if it doesn't extend the full width of the banner.
Template guidelines
Use the guidelines to position your image correctly, with the main content (such as faces) inside the indicated guidelines.
Step 3: Save your hero banner
- When you are happy with your hero banner, in the 'Layers' panel, go to the top-right menu and select 'Flatten image'. (If you are asked to discard hidden layers select 'OK'.)
- Go to 'File' > 'Export as'.
- Set the 'Format' as JPG and 'Quality' as 70%.
- Click the 'Export' button and then save. Follow the UQ file naming conventions when saving your image.
Your image will be saved at the correct specifications:
- Image size: 2160px x 540px
- Resolution: 72 DPI
Whether you need to use the purple gradient layer depends on the width of your base image. Only turn on the gradient if necessary.
Check different screen sizes before you publish (mobile, tablet, desktop) to make sure that your banner doesn't crop people's faces or key parts of the image.
Landing pages use One UQ hero banners. These don't have a purple gradient.
Example desktop view
Example mobile view
Step 1: Select your base image
Select an image to feature in your hero banner.
It must be at least 1528px wide x 672px high.
Step 2: Use the template to create your hero banner
Using the template will ensure the banner displays correctly across various screen resolutions.
- Download the One UQ hero template (staff login required).
- Open both the template and your image in Photoshop.
- Copy and paste your image into a new layer on the template.
- Ensure the 'Mask layer' is at the top of the 'Layers' panel.
- Select 'Edit '> 'Free transform' to resize your image proportionally.
- Use the guidelines to position your image correctly, with the main content (such as faces) inside the indicated guidelines. The space inside the safe zone is what will display on smaller screens.
- Hide the 'Mask layer' by clicking the eye icon to the left of the layer name.
Step 3: Save your hero banner
- When you are happy with your hero banner, in the 'Layers' panel, go to the top-right menu and select 'Flatten image'. (If you are asked to discard hidden layers select 'OK'.)
- Go to 'File' > 'Export as'.
- Set the 'Format' as JPG and 'Quality' as Very good.
- Click the 'Export' button and then save. Follow the UQ file naming conventions when saving your image.
Your image will be saved at the correct specifications:
- Image size: 1528x x 672px
- Resolution: 72 DPI
Check different screen sizes before you publish (mobile, tablet, desktop) to make sure that your banner doesn't crop people's faces or key parts of the image.
The homepage hero banner includes a mandatory CTA button and is only used on the UQ homepage. Homepage content needs to be approved by the Web Audiences Working Group.
Example desktop view
Example mobile view
Step 1: Select your base image
Select an image to feature in your hero banner.
It must be at least 1528px wide x 1000px high.
Step 2: Use the template to create your hero banner
- Download the Homepage hero template (staff login required).
- Open both the template and your image in Photoshop.
- Copy and paste your image into a new layer on the template.
- Ensure the 'SAFE ZONE' is at the top of the 'Layers' panel.
- Select 'Edit'> 'Free transform' to resize your image proportionally.
- Use the guidelines to position your image correctly, with the main content (such as faces) inside the indicated guidelines. The space inside the safe zone is what will display on smaller screens.
- Hide the SAFE ZONE' by clicking the eye icon to the left of the layer name.
Step 3: Save your hero banner
- When you are happy with your hero banner, in the 'Layers' panel, go to the top-right menu and select 'Flatten image'. (If you are asked to discard hidden layers select 'Ok')
- Go to 'File' > 'Export as'.
- Set the 'Format' as JPG and 'Quality' as ‘Very good’.
- Click the 'Export' button and then save. Follow the UQ file naming conventions when saving your image.
Your image will be saved at the correct specifications:
- Image size: 1528x x 672px
- Resolution: 72 DPI
Check different screen sizes before you publish (mobile, tablet, desktop) to make sure that your banner doesn't crop people's faces or key parts of the image.
On the Scholarships website, you must select from the pre-loaded approved hero banners. To request a new hero banner, contact ugscholarships@uq.edu.au.