Remove the main collection image from mobile, but leave it on desktop? Possible? HELP please

Topic summary

Main issue: Keep the collection hero image on desktop but hide it on mobile to avoid long pages.

Context: Shopify Dawn theme; store URL shared (apexanimalz.com).

Solution (consensus): Use a CSS media query in base.css to hide the collection hero image on small screens.

  • Recommended rule:
    @media (max-width: 767px) {
    .collection-hero__image-container.media.gradient { display: none; }
    }
  • Alternative selector shared:
    @media (max-width: 749px) {
    .collection-hero__description img { display: none; }
    }
  • If needed, add !important to ensure override: display: none !important;

Implementation details:

  • Path: Online Store → Theme → Edit code → Assets → base.css.
  • Placement: paste the code at the bottom of base.css.

Outcome: The original poster confirmed the fix worked; issue resolved.

Notes: One reply included a mobile screenshot demonstrating the hidden image; otherwise no additional changes were required.

Summarized with AI on January 17. AI used: gpt-5.

Hello

I have a slightly different problem, I hope you can help.

I want my main collection image to show on the top of collection page, but NOT on mobile. It looks much nicer on desktop BUT it makes the page too long on mobile.

Is there a way to fix this?

thank you

Hello @ApexMikey ,

With media query css you can do this.

If not sure how please share the store URL here

Thanks

1 Like

Awesome, thank you.

I can modify/paste code, cannot do much else :slightly_smiling_face:

https://www.apexanimalz.com

Much appreciated,

M.

Hello @ApexMikey

Can you share your store URL?

Yes, thank you.

https://www.apexanimalz.com

The theme is dawn.

Much appreciated,

M.

Follow these steps:

  1. Go to Online Store → Theme → Edit code

  2. Open your base.css file and paste the following code below:

@media only screen and (max-width: 767px) {
.collection-hero__image-container.media.gradient{
display: nooe;
}
}

Thanks, what part of the page do I enter it? Top, middle, bottom?

Bottom

@media only screen and (max-width: 767px) {
.collection-hero__image-container.media.gradient{
display: none;
}
}

hi, ApexMikey

Follow these steps:

  1. Go to Online Store → Theme → Edit code

  2. Open your base.css file and paste the following code below:

@media only screen and (max-width: 767px) {
.collection-hero__image-container.media.gradient{
display: none;
}
}

If you face any issue let m know

In Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

@media (max-width: 749px) {
    .collection-hero__description img {
        display: none;
    }
}

The result on mobile

Hope that helps!

Hi @ApexMikey

This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Base.css

@media(max-width: 767px) {
.collection-hero__image-container.media.gradient{
   display: none !important;
}
}

Hope you find my answer helpful!
Best regards,
Richard | PageFly

Perfect, thanks!!!

1 Like

You are welcome! :slightly_smiling_face: