Shopify themes, liquid, logos, and UX
So TLDR- i would like to change the background color for my blog posts. I love my pink background but it does not look quite as good in blog format. I tried to make a work around by copying the blog html into a custom liquid box. But when I did that, the custom liquid box width was too wide and the format was messed up. Is there a way to change the margins for the custom liquid box and or change the background color of the blog post?
I want the format to look like this but have the colors look like the second picture.
Hello @kimbree123
You can remove old code and add code by following steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
{% if template contains 'article' %}
<style>
main#MainContent {
background: #EBE5D9;
}
</style>
{% endif %}
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
thank you! this worked for me!
Hi @kimbree123
This is Victor from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: paste bellow code in tag </body> -> save.
{% if template contains 'product' %}
<style>
@media screen and (max-width: 1024px ) and (min-width: 600px ){
#MainContent {
margin-left: 25%;
margin-right: 25%;
}}
</style>
{% endif %}
Hope that my solution works for you.
Best regards,
Victor | PageFly
You can try with this code:
@media screen and (max-width: 767px){
div>img {
float: unset !important;
}
}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025