How do I add a hero banner image to Locksmith's access messages
This guide provides an example of how to add a banner image above your access message content in your Shopify online store.
Customizing messages

Example image of where the above example code can be added to the "Guest message content" field to include a hero banner above the lock's guest message content.
Customizing messagesCustomizing the passcode formCustomizing the email list signup form
Adding a hero banner above your access content:
Hero banner CSS and HTML:
<style>
.hero-image {
/* Replace the URL here with the URL to your image */
background-image: url("https://www.w3schools.com/howto/photographer.jpg");
/* Set a specific height */
height: 300px;
/* Position and center the image to scale nicely on all screens */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
</style>
<div role="banner" class="hero-image">
</div>
Customising this example:
Modify this code to display a collection-specific banner image (advanced):
Uploading and storing images:
Related articles:
Customizing messagesCustomizing the passcode formCustomizing the email list signup formPreviousI am getting an "already taken" error when trying to create a metafield definition for seo.hiddenNextWhat order are different types of key conditions evaluated in?
Last updated
Was this helpful?
