We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to hide one of two images in an image banner on mobile

How to hide one of two images in an image banner on mobile

njwnd
Visitor
1 0 0

Hi there, I'm have an image banner block as my hero image right now with two images within it and text/content container centered left. The client would like only one image to show on mobile (with the content container shown as well on mobile so it isn't overlapping the image) but I'm struggling to get it to hide only one image (the left one). 

 

I've tried to code it several different ways such as using:

 

@media (max-width: 749px) { div.banner__media.media, banner__media-half { display: none !important; } }

 

This hid both images though.

 

Does anyone know how to target one specific image within it? Thanks.

Replies 3 (3)

Natasha-Saed
Shopify Partner
467 51 87

Hello,

 

I recommend that you do two banners one for desktop and the other one for mobile and hide the first one for mobile and the second one for desktop.  If you add the banners I can walk you through on how to do it, also share your store url please

If my solution helped you don't forget to accept it to help others.
===================================================================
And if you really like my support share a cup of coffee with me paypal.me/freemindsint

DaisyVo
Shopify Partner
4469 501 599

Hi @njwnd ,

Can you share your store URL and a specific image so that I can check?

 

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
DaisyVo
Shopify Partner
4469 501 599

Hi @njwnd ,

 

I haven't got your response yet. Can you share so that I can check?

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution