How to add a video background to the Hero banner
To enable this functionality, you need to add at least a One-Line of Text module inside the Hero Wrapper group, with the class:
video-url
This is the module where you will include your video file URL. Basically, only the MP4 (.mp4) video format is required, but if you want to support multiple video formats (e.g. WebM, Ogg), you can add one module for each format.
Here is a step-by-step video tutorial, in two parts, one showing what to do at the template level, and the other one showing what edits you need to make at the page level:
Part 1: Edit the template
- Open your Act template containing a Hero Banner in Design Manager
- Add a One Line of Text module inside the Hero Wrapper group
- Name your new module Video URL and delete the default text
- Add this class to the Video URL module:
video-url
- Publish your changes
After publishing the changes, a new option will be available at the page level under the BODY MODULES section, named Video URL. Please watch the entire next video to learn what edits you need to make at the page level.
Part 2: Edit the page
Important note:
In order for the video functionality to work properly you need to comply with the following best practices:
- The video file must be smaller than 5MB (MP4 format required)
- A poster image with the first frame of the video must be set in the Hero banner background image module. This will be displayed on older browsers and mobile devices that don't support video background functionality.
- The Hero banner background fixed option must be set to “no”