Currently I’ve solutioned a background image using the following code in the Custom CSS for various sections for desktop viewing:
.gradient {
background: var(--gradient-background);
background-attachment: scroll;
background-image: url(https://cdn.shopify.com/s/files/1/0606/5707/4263/files/Gradient_Checker_Background.jpg) !important;
background-color: transparent !important;
background-position: center !important;
background-size: cover !important;
background-repeat: no;
}
However because this is a wide image, I would like to add an alternate image for the background when viewing on mobile. https://cdn.shopify.com/s/files/1/0606/5707/4263/files/Gradient_Checker_Background_mobile.jpg
Example:
-
Is there a better/easier way for me to apply background images to all of my pages?
-
How do I change the background image for mobile only?
Website: greatlakeslittles.com
Password: mitten
