How to set up separate mobile and desktop images on Dawn theme?

Solved

How to set up separate mobile and desktop images on Dawn theme?

KMichael
Excursionist
30 0 4

Hi there,

Could you help me set up separate images for mobile and desktop?

I am using Dawn theme.

Thank you

Accepted Solution (1)

LitCommerce
Astronaut
2860 684 749

This is an accepted solution.

Hi @KMichael,

Go to Assets > base.css and paste this at the bottom of the file:

.banner .banner__media:first-child {
    width: 100%;
}
.banner .banner__media+.banner__media {
    display: none;
}
@media screen and (max-width: 749px) {
	.banner .banner__media:first-child {
		display: none;
	}
	.banner .banner__media+.banner__media {
		width: 100%;
		display: block !important;
	}
}

it will help you to display 2nd image for mobile.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

Replies 2 (2)

LitCommerce
Astronaut
2860 684 749

This is an accepted solution.

Hi @KMichael,

Go to Assets > base.css and paste this at the bottom of the file:

.banner .banner__media:first-child {
    width: 100%;
}
.banner .banner__media+.banner__media {
    display: none;
}
@media screen and (max-width: 749px) {
	.banner .banner__media:first-child {
		display: none;
	}
	.banner .banner__media+.banner__media {
		width: 100%;
		display: block !important;
	}
}

it will help you to display 2nd image for mobile.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
nurture_nestle
New Member
5 0 0

Is there any way to get the container and then text below the image rather than above? I did your CSS fix, but now the image is below the text which doesn't look very good. screenshot-nurtureandnestle_com-2024_09_08-09_45_58.png