All things Shopify and commerce
Below is the code that changed the website background color for all my main pages, didn't apply to the rest of the pages on my store
code: anna
/* Ensure the background and text color apply across all devices */
.color-scheme-1.gradient {
background-color: #fff2de !important;
color: #7c715b !important;
}
/* Additional specificity to target mobile devices */
@media only screen and (max-width: 767px) {
.color-scheme-1.gradient {
background-color: #fff2de !important;
color: #7c715b !important;
}
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style> ... YOUR CODE HERE! </style>
just to clarify it didn't apply to my inquiry page, contact us page, or gallery
Hello @sippinonsunshin ,
Reason is same class not available in the inner pages.
If you need same background in whole site update the css with this one
/* Ensure the background and text color apply across all devices */
.color-scheme-1.gradient, #MainContent {
background-color: #fff2de !important;
color: #7c715b !important;
}
/* Additional specificity to target mobile devices */
@media only screen and (max-width: 767px) {
.color-scheme-1.gradient, #MainContent {
background-color: #fff2de !important;
color: #7c715b !important;
}
Thanks
/* Ensure the background and text color apply across all devices */
.color-scheme-1.gradient, #MainContent {
background-color: #fff2de !important;
color: #7c715b !important;
}
/* Additional specificity to target mobile devices */
@media only screen and (max-width: 767px) {
.color-scheme-1.gradient {
background-color: #fff2de !important;
color: #7c715b !important;
}
}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025