SectionAI is free + 20K tokens if you're a The4 customer, Free plan is available Install App  

Header background

Different heading images for mobile/desktop on collection

Annie

Written by Annie

Last updated

1141 views

On this page


Shopify only allows you to choose only one feature image for each collection. The 'Page heading' on collection shows the image from the feature image and you may not be able to show the full image or choose different collection images for desktop and mobile views.

01.png

This guideline will help you to sort out this problem to have better heading images on both desktop and mobile.

Note: You will need to hide "Page heading" on collection to achieve it. It means you can not show the 'collection title', 'breadcrumb' or 'collection description' if you config in this way.

1. Create metafields of collections

Go to Shopify Settings > Custom Data > Collections > Click 'Add definition'

13.png

1.1. For collection image on desktop

Create the first metafield for collection image on desktop version. You can add the namespace, key and type like the image below:

14.png

1.2. For collection image on mobile

Create the second metafield like the image below:

15.png

After you have done 2 steps above, you will get 2 metafields of collections here:

16.png

2. Choose images for collection metafields

Go to Shopify Admin > Products > Collections > choose collection you want to add the banner image > scroll down to the bottom of the page and choose the images for metafield you created at step 1.

17.png

You need to do the same for all collections you want. If you don't add the images here, it will show a blank image on the front page.

If you only need different heading image for specific collections, you need to create a new "collection template". Then assign the collections to this new template before go to step 3 below.

3. Add section in Theme customize

Please follow the video below to add 'Banner section' on collection page and connect it with metafield:

This section allows you to change the width and height of the image:

You can refer to this article to know more about Banner section.

🎁 Exclusive Deals for The4 Customers

SectionAI

🤖 SectionAI – Build Sections with AI

Generate Shopify sections from text or wireframes.
The4 users get +20,000 bonus tokens when verifying their theme license.

  • ✅ No-code section builder
  • ✅ Works with your The4 theme
  • ✅ Build FAQs, banners, product grids & more
🚀 Try Free – Claim Tokens
EComposer

🎉 EComposer – Free 6-Month Plan

Build landing pages, sales funnels, and more with drag & drop.
The4 users get 6 months free (save $114).

  • ✅ 100+ templates ready to use
  • ✅ Build any Shopify page
  • ✅ No coding required
🔓 Get 6 Months Free

Enjoy a free 3-day trial. Then get your first month for $1. Try Now

We uses cookies to ensure you get the best experience on our website.