I noticed shopify had a recent update and I am loving it but I need help hiding specific hero images on mobile & desktop. I created two hero images, one for desktop and the other for mobile. The code I was once using is no longer working!
1 Like
Hi @arahming123 ,
Replace you existing code with below code
.hero-mobile {
display: none;
}
@media screen and (max-width: 768px) {
.hero-mobile {
display: block;
}
.hero-desktop {
display: none;
}
}
You can do that by adding code to Custom CSS of each section following this
Add this code to the custom CSS of the desktop section
@media (max-width: 749px) {
.hero { display: none; }
}
And this code is for Custom CSS of the mobile section
@media (min-width: 750px) {
.hero { display: none; }
}
1 Like
Hi @arahming123 I dont see any hero image banners on mobile. Please doube check on this
This worked perfectly. Thank you so much!

