What is the best way to create a different banner image for each separate collection please? If you use the default collection then you can only have one banner image.
Currently I have created multiple collection “templates”, will this work adequately without slowing down my website over time if I have many collections?
Creating a separate collection template just to have different banner for every collection is not a user-friendly way anyways. What I would suggest you is to create a collection image metafield and then just simply connect that metafield with your image banner section and just add image in Shopify backend collection page metafield.
Feel free to let me know if you need help setting that up and I would be more than happy to help with that.
Are you able to give me a quick guide as to how to setup a collection image metafield and then link multiple collection image banners into multiple collections please? I have found that I need to play around with uploading different image sizes to get the best resolution result, can I do this when using your metafield method?
I recommend setting up a separate template and leveraging metafields to manage the image display for each collection.
Should you encounter any issues or require further assistance, please do not hesitate to reach out — I would be happy to support you in resolving them.
Go to Settings > Custom data > Collections
Create a new metafield:
Name: Banner Image
Type: File (one image)
In your collection template, paste this code where you want the banner:
{% if collection.metafields.custom.banner_image %}
{% endif %}
{%- comment -%}
Replace `custom.banner_image` if you use a different namespace or key.
For example: collection.metafields.YOUR_NAMESPACE.YOUR_KEY
{%- endcomment -%}
Now go to each collection page in the admin and upload a unique image in the Banner Image metafield.