Background didnt apply to gallery, inquiry, contact us pages

Topic summary

Issue: A custom CSS snippet changed the background/text color on main pages but not on the inquiry, contact us, or gallery pages.

Cause: Those inner pages don’t use the .color-scheme-1.gradient class targeted by the original CSS, so the styles didn’t apply there.

Proposed fix: Broaden the selector to also target #MainContent so styles apply site‑wide. Both replies recommend updating the CSS to “.color-scheme-1.gradient, #MainContent { background-color: #fff2de; color: #7c715b; }”. One version also repeats this in a mobile media query to ensure consistency on small screens.

How to implement: Add the updated CSS in theme.liquid, inside a block placed above the closing tag (Shopify Admin → Online Store → Theme → Edit code → theme.liquid).

Evidence/attachments: Screenshots were provided to show the final visual result after adding #MainContent.

Status: A clear solution was provided; confirmation from the original poster isn’t shown, so resolution is not explicitly confirmed.

Summarized with AI on December 22. AI used: gpt-5.

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

www.sippinonsunshine.net

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 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

@sippinonsunshin Please add the CSS selector “#MainContent” to the existing code you have provided to add the background color to the gallery, inquiry, and contact us pages as well. Let me know whether it is helpful for you.

Updated code:

/* 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;
  }
}

Final results will be like,

Please provide your support by click “Like” and “Accepted” if our solution works for you. Thanks for your support.