Different images for desktop and mobile view

Solved

Different images for desktop and mobile view

mjcmjp
Visitor
3 0 0

I'm trying to display different images for mobile and desktop view with the dawn theme but when i preview my store it just puts the 2 images side by side. Any ideas how to fix this?

Accepted Solution (1)

DrewOswald
Shopify Partner
25 8 9

This is an accepted solution.

An easy way I accomplish this is by using two ‘Image Banner’ sections—one is hidden on desktop, and the other is hidden on mobile.

DrewOswald_0-1746943085543.png

001.png

Hide on mobile

@media screen and (max-width: 749px) {
  {
    display: none;
  }
}

 Hide on desktop

@media screen and (min-width: 750px) {
  {
    display: none;
  }
}
devDrew webDev · Need a developer? Send me a DM.

View solution in original post

Replies 2 (2)

DrewOswald
Shopify Partner
25 8 9

This is an accepted solution.

An easy way I accomplish this is by using two ‘Image Banner’ sections—one is hidden on desktop, and the other is hidden on mobile.

DrewOswald_0-1746943085543.png

001.png

Hide on mobile

@media screen and (max-width: 749px) {
  {
    display: none;
  }
}

 Hide on desktop

@media screen and (min-width: 750px) {
  {
    display: none;
  }
}
devDrew webDev · Need a developer? Send me a DM.
mjcmjp
Visitor
3 0 0

Omg this has finally worked thank you so much I’ve been trying for weeks!