Jump to content

Different pictures on mobile and desktop

Recommended Posts

Site URL: https://www.tutti-palette.de

Hey,

I am wondering if it is possible to change the first picture of my products just on my mobile site. I have an online shop. In the desktop version you can hover over the first picture. Then you see the second picture. On my mobile version I would love to see the second picture directly (because it don`t have the hover effect).

Is it possible? How would you make it?

Thank you very much.

Link to comment
  • Replies 4
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
.ProductList-innerImageWrapper>img:first-child {
    opacity: 0 !important;
}
.ProductList-innerImageWrapper>img:last-child {
    opacity: 1 !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...

No I did not solve the problem. I deleted the code again. Because with the code I couldn`t see any preview picture. The desktop and mobile version are the same at that moment. I see the picture just with the product.

But actually I try to see another preview picture on the mobile version as on the desktop version. That means: Every product object is built on the same way. The first picture shows just the product. On the second picture you the product with environment. On the desktop version I like to see just the product first. But on the mobile version I would like to see the picture with the environment first.

Do you know what I mean? 🙂

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.