Shopify themes, liquid, logos, and UX
I think I'm going to go completely bonkers here.
Working with the Shopify free theme "Origin" and I'm trying to change the colour of the page section. I want to apply color scheme 2, but it's not applying only to the page sections. I don't have the option to select a colour scheme for this section either.
I'd like for the entire theme to be black and white, but it won't let me change that gross beige color scheme 1. I know there's got to be a way to do this! Can anyone point me in the direction of the code I need to make this change?
Solved! Go to the solution
This is an accepted solution.
Thanks for the info, check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
section#shopify-section-template--22703656960022__main {
background: #000;
}
section#shopify-section-template--22703656960022__main * {
color: #fff;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Would you mind sharing your store URL? Thanks!
Hey there! Thanks for offering to take a look.
thedreamcatchersweb.ca
the storefront password is piglem
This is an accepted solution.
Thanks for the info, check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
section#shopify-section-template--22703656960022__main {
background: #000;
}
section#shopify-section-template--22703656960022__main * {
color: #fff;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you so much! That did the trick.
@Dreamcatcherweb, Can you kindly share your store link with us? We will check it and suggest you a solution if possible.
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hello @Dreamcatcherweb
If you're looking to apply background colors block-wise, updating the schema in the section’s .liquid file is an effective way to introduce background settings that can be managed from the theme editor.
Here’s a breakdown of how you can do this:
Edit the Section Schema: In the .liquid file for the section you want to change, you can add a new color setting in the schema. This will allow you to control the background color via the theme customizer.
For example, open the relevant .liquid file (e.g., sections/page-sections.liquid) and add the following code to the schema:
Apply the Background Setting via CSS: Once the color setting is added, you can apply it in the CSS by targeting the section ID. Use inline CSS in the .liquid file to dynamically set the background color based on the user’s selection in the theme customizer:
Managing via Section ID: By adding the background color settings to the schema, you can easily manage the background colors for each section in the theme editor. Each section’s ID can then be used to apply specific styles using CSS or inline styles, giving you control over individual block background colors.
This method allows for more flexibility and keeps everything manageable from the theme’s customizer.
Let me know if you'd like further clarification!
Hello @Dreamcatcherweb
Our team is ready to help you.
Please share your website URL so that we can check and assist you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
- Here is the solution for you @Dreamcatcherweb
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it
<style>
section#shopify-section-template--22703656960022__main {
background: #11151c;
color: white !important;
}
h1.main-page-title.page-title.h0.scroll-trigger.animate--fade-in {
color: white !important;
}
</style>
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024