Shopify themes, liquid, logos, and UX
I used the following code and added it to my base.css file. The colour changed for my desktop website but not for my mobile. How do I get it to work for my mobile page too.
main#MainContent {
background: #faf9f6 !important;
}
Solved! Go to the solution
This is an accepted solution.
Maybe add it in the theme.liquid file right below the <head> tag
<style>
main#MainContent {
background-color: #faf9f6 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hey @aurumlux,
Can you share the link to your store please? Thank you
aurumlux.co.uk - password is "globetrotter". Still under construction :@
Maybe try this?
#MainContent > section .gradient {
background-color: #faf9f6 !important;
}
#MainContent > section:has(> .banner) .gradient {
background-color: transparent !important;
}
Didnt work unfortunately
The site I'm seeing is already in that colour. Are you working on a draft theme? If so can you send me the preview link to that theme instead?
I think you may have misunderstood. The background colour on desktop is fine. However, on mobile the background colour is still white on the policy pages but everywhere else the colour matches.
on the policy page^ but everywhere else the colour matches
Hey! I was talking about mobile.
I'm seeing it in the pale colour on mobile as well.
I checked all the policies, return, privacy, and shipping. Which one are you talking about?
when I go on my mobile it still shows this white colour across all policy pages so It may just be my phone then and yes I sent u the updated theme
Try incognito, I used iPhone too. I had the colour you wanted. Same page.
Still no luck, tried it on 2 phones as well. very strange
im going to try a different browser on my phone
This is an accepted solution.
Maybe add it in the theme.liquid file right below the <head> tag
<style>
main#MainContent {
background-color: #faf9f6 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
thank you very much
Hello,
I had the same problem just right now and it too me hours to solve the problem, and it was a tiny problem. First of all if you have any edit codes to solve this go ahead and remove them because it has nothing to do with this.
Solution: I am pretty sure you used the template that shopify suggested for the policies and made few changes, if you did, go ahead and select that and then change color to white click "save" and then change it back to black (or the color you desire). Go under settings page on your home screen of shopify, and then look for "Policies" and then follow the steps that I just told you for EACH policy.
Let me know if this works because it did for me.
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024