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.
Last updated
Was this helpful?
This guide provides an example of how to add a banner image above your access message content in your Shopify online store.
Last updated
Was this helpful?
Locksmith's access messages can be modified using text, HTML, CSS, JavaScript and Liquid code. We cover this and where to edit Locksmith's access messages in our customising messages guide, linked below:
The following code can be added to your "Guest message content" field, above your existing message:
To replace the example image with your own, replace the URL with the quotes for the background-image
with the URL of your banner image
Adjusting the height of the hero banner by changing the height
value (300px in this example) to suit your needs
The above code is based on an example from W3 School, here:
Make sure all your collection banner images are of the same file type. This can be any file type compatible with (or wherever you’ve stored your images), so long as they’re consistent.
are located in the Locksmith app’s Settings tab. By adding this modified hero banner image code to a message field in Locksmith’s settings—instead of a specific lock’s settings page—the code will apply to any lock that is using the default message.
Shopify has some documentation on uploading and managing files here: