A user needs to change the background color of individual pages (contact, FAQ, terms of service, etc.) in the Trade theme from white to dark (#151515). The default color scheme options don’t provide this capability.
Initial Problem:
Attempted CSS targeting specific section IDs failed to work
Issue affects all pages except the homepage
Working Solution:
Multiple developers provided similar CSS-based fixes, with the accepted solution being:
Add custom CSS to theme.liquid file (before </body> tag)
Target main#MainContent with background color styling
Use !important flag to override default styles
Alternative Approaches Suggested:
Modify base.css or theme.css files directly
Various CSS selectors targeting MainContent or body elements
Open Question:
A follow-up inquiry asks whether this can be accomplished through the theme editor interface instead of editing code files directly—currently unanswered.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
This is a problem for every page I have on my website (contact, faq, terms of service, etc;) excluding the home page. Any assistance would be greatly appreciated!
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Here are the steps to apply the necessary changes in your Shopify store:
In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
Locate Asset > base.css and paste the following code at the bottom of the file:
body main#MainContent {
background: #151515 !important;
}