Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Image above Header - Collection Page

Solved

How can I add an image above the header on my collection page?

Franz22
Excursionist
29 0 5

Hi Shopify Wizards 💻

Can you explain me how can I add a small horizontal image that will appear on this page above the Title ? (see image below, green line)

Thank you !

Francisco

IMG_4334.jpg

Accepted Solutions (2)
LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hi @Franz22 ,

If so, image will be same for all collections.
- You can upload images in Assets, ex: image-collection.png
- You just need to add this code in main-collection-banner.liquid file where you want to display it will work fine:

<img src="{{ 'image-collection.png' | asset_url }}" class="image" alt="" />


Hope it clear to you.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hi @Franz22,

Please go to sections/main-collection-banner.liquid file and add code in line 6.

Refer https://i.imgur.com/3GZ3cII.png

Hope it clear to you.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 9 (9)

dmwwebartisan
Shopify Partner
12323 2552 3732

@Franz22 

This is code customization work .

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app

Franz22
Excursionist
29 0 5

Any other solution ? more specific solution please ?

Thank you

LitExtension
Shopify Partner
4877 1003 1169

Hi @Franz22,

Please go to sections > main-collection-banner.liquid file and move code: https://i.imgur.com/ukItelW.png

Refer https://github.com/Shopify/dawn/blob/main/sections/main-collection-banner.liquid

Then you just need to upload the image in the collection, it will display fine. https://i.imgur.com/C9mVZHd.png

Hope it helps!

If my answer can help you solve your issue, please mark it as a solution. Thank you and good luck

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Franz22
Excursionist
29 0 5

Hi,

Thank you for your answer. However what I want to upload is something different :

  • The image that will be shown will be an horizontal .png or .jpeg image, different from the collection image (which is square, plus I don't want it to appear at that specific space).

In that case, what should I do ?

Best,

Francisco

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hi @Franz22 ,

If so, image will be same for all collections.
- You can upload images in Assets, ex: image-collection.png
- You just need to add this code in main-collection-banner.liquid file where you want to display it will work fine:

<img src="{{ 'image-collection.png' | asset_url }}" class="image" alt="" />


Hope it clear to you.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Franz22
Excursionist
29 0 5

Hi,

The asset integration and the line of code is clear. However, where exactly in main-collection-banner.liquid   should do I add this line of code ?

I want the image to appear above "Monthly Selection". Please refer to my original thread to see details.

 

Thanks 

Francisco

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hi @Franz22,

Please go to sections/main-collection-banner.liquid file and add code in line 6.

Refer https://i.imgur.com/3GZ3cII.png

Hope it clear to you.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Franz22
Excursionist
29 0 5

It worked ! 

Thanks so much !

RichardFS
Shopify Partner
4 0 0

Hello - I have the same issue, but would like to be able to add a different horizontal banner for each collection, rather than a single one that applies to all. Basically like adding a second image to collections, and then allowing the collections page to use that second image as a banner. Otherwise the default collection image, which is square, doesn't appear correctly on the collections page, but does appear correctly on collection list for example on the home page. How can we do that?

 

Home page collections list: uses collection's square image

 

Screenshot 2024-08-19 at 13.28.36.png

 

Collection page header uses square image also:

 

Screenshot 2024-08-19 at 13.28.27.png