COLLECTION BANNER IMAGE - same size and behaviour as product image

Topic summary

A user wants their collection banner image to display as a square with responsive sizing, matching the behavior of product images on their store.

Proposed Solutions:

Two respondents provided nearly identical CSS-based fixes:

  • Add custom CSS code to the base.css file (found in Online store > Themes > Edit code)
  • Target the .collection-hero__image-container class
  • Set max-width: 550px !important to control the banner dimensions

Status:

The discussion remains open with no confirmation from the original poster about whether either solution resolved the issue. Both solutions appear technically similar, suggesting consensus on the approach.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

Hi,

I would like for my Collection Banner image to have the exact same size as my Product images, aka that the image stays a square and that the size of the square adapts to the size of the screen.

Here is the link to the shop and password:

https://384f77-3.myshopify.com/collections/le-petite-ashley

mewnaw

And below a screenshot of the collection banner:

1 Like

Hi @AnaELW

You can do that by adding this CSS code at the bottom of base.css file in Online store > Themes > Edit code

.collection-hero__image-container { max-width: 550px !important; }

Hello @AnaELW

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottom of the file:
.collection-hero__image-container { 
    max-width: 550px !important; 
}