Creating a different banner image for each collection

Creating a different banner image for each collection

TGregs
Tourist
6 0 1

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?

Replies 7 (7)

Moeed
Shopify Partner
7693 2069 2550

Hey @TGregs 

 

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.

 

Best,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


TGregs
Tourist
6 0 1

Thank you @Moeed

 

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?

 

Best regards,

TGregs
Tourist
6 0 1

Hi Eliza,

 

Thank you, yes please I would like a guide on setting up the Metafields please.

 

How do I find out what online store version I am using please?

I am using shopify theme: Dawn 15.2.0

 

Best regards,

 

 

AnneLuo
Shopify Partner
1353 237 277

Hi, @TGregs 

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.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

TGregs
Tourist
6 0 1

Hi @AnneLuo,

 

Thank you, yes please, are you able to advise how to setup the metafields for banner images please, I am using theme "Dawn" version 15.2.0.

 

Best regards,  

AnneLuo
Shopify Partner
1353 237 277

Hi, @TGregs 

Can you please send me your collaborator code? I will check it for you.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

topnewyork
Astronaut
1513 186 248

 

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 %}
  <img src="{{ collection.metafields.custom.banner_image | img_url: 'master' }}" alt="{{ collection.title }}">
{% 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.

 

screenshoteasy (16).png

 

 

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month