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
This guide provides an example of how to add a banner image above your access message content in your Shopify online store.
Last updated
Note: While we can provide examples and guidance, we're unable to write custom code for individual store customisations. This example is meant as a starting point for your own implementation.
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:
The above code is based on an example from W3 School, here: https://www.w3schools.com/howto/howto_css_hero_image.asp
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
Shopify has some documentation on uploading and managing files here: https://help.shopify.com/en/manual/shopify-admin/productivity-tools/file-uploads