How can I create a hyperlinked background image in an Action?

Avatar
Chris Broughton

Overview

One of the most simplistic ways to create a Custom Action is to embed a full image and link it to either a URL or email address. This solution avoids coding individual HTML elements with CSS styles, as the image itself will have been designed to show the CTA button as part of the graphic. 

Some caveats of creating an Action this way is that you can only use one link, as clicking anywhere on the image will open that single URL. You also cannot create any on hover effects for certain parts of the Action, resulting in the visual looking and acting less dynamic than using more heavily coded HTML and CSS.

The example below shows an image with a button that has been designed by a graphic designer, uploaded onto a web server and then rendered in an Action.

Example of an Image Background CTA with button

Steps

1. Create a new Action by clicking Actions and then New Action (top right).

Actions menunew action

 

2. Select Fullscreen from Custom and press Create.

Custom Fullscreen

3. Give your Action a name and then click on the HTML tab

Give name and click HTML

4. Copy and paste code from this Vidyard CodePen into the editor (Note: code is provided for instructional purposes only)

Pasted from Codepen in HTML Box

5. Make changes to the code that will suit your presentation of the content. Replace 'EXTERNAL LINK' with the webpage you wish to send your viewer to (you can replace 'https://' with 'mailto:' if it is an email address rather than webpage). Replace 'IMAGE LINK' with the image that is hosted and publicly accessible.

Modified HTML

6. Save and Assign the content.

Click Save and assign

7. Click on the Add Video button from the top right and select a video for the Action.

Click Add video

8. Select a timepoint that suits this Action. POST will appear after the final frame and is most common.

Click POST

Job done! You could even make this a default event if you would like the same experience across all of the videos in your group!

 

Need support

Submit a ticket or start a chat. We'll provide a self-serve resource or connect you with our support team, available 24x5.

Chat with Our Team