Shopify themes, liquid, logos, and UX
I would like to remove this white space shown in red from the site on both mobile and desktop. I don't know how it got there, or how to remove it.
Solved! Go to the solution
This is an accepted solution.
Hi @jeffjohnston86
Please put this css in theme.liquid before body closing tag </body>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
Please don't forget to Like and Mark Solution to the post that helped you.
Thanks!
This is an accepted solution.
- Here is the solution for you @jeffjohnston86
- 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>
body {
margin: 0 !important;
padding: 0 !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
This is an accepted solution.
Thanks for the info, check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
<style>
body.gradient.animate--hover-vertical-lift {
margin: 0 !important;
padding: 0 !important;
}
</style>
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
like this @jeffjohnston86
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
Would you mind sharing your store URL? Thanks!
Sure, here is the preview of the theme, as it isn't currently published. https://m2pknhq86hfrfux8-8092027.shopifypreview.com
This is an accepted solution.
Thanks for the info, check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
<style>
body.gradient.animate--hover-vertical-lift {
margin: 0 !important;
padding: 0 !important;
}
</style>
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @jeffjohnston86
Please put this css in theme.liquid before body closing tag </body>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
Please don't forget to Like and Mark Solution to the post that helped you.
Thanks!
I've made this change to the code at line 300, I'm not sure if this is what you meant to do, but it did not remove the boarder unfortunately.
Never mind I inserted in the wrong area, it worked thank you!
Hello @jeffjohnston86
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 preview of the theme as it currently isn't published. https://m2pknhq86hfrfux8-8092027.shopifypreview.com
This is an accepted solution.
- Here is the solution for you @jeffjohnston86
- 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>
body {
margin: 0 !important;
padding: 0 !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
This is an accepted solution.
like this @jeffjohnston86
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
Thank you for your help!
Glad to help you. Have a good day.
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
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025