Shopify themes, liquid, logos, and UX
Hi everyone,
I have the following issue:
We use the dawn theme. For whatever reason, since recently, we have this boarder on our product page. Now I dont know where it came from but even the shopify support could not help us. He said it had to something to do with the theme. Does anyone have the same issues and more importantly how do I get rid of it?
Example URL: Link
thanks!
Solved! Go to the solution
This is an accepted solution.
Hey @justaguywithsom,
I noticed, it's on both desktop and mobile. I gave you two codes to remove on both, or just remove on mobile.
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Remove on both desktop and mobile.
<style>
body.gradient {
padding: 0 !important;
}
</style>
Remove on mobile only
<style>
@media only screen and (max-width: 989px) {
body.gradient {
padding: 0 !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hey @justaguywithsom,
I noticed, it's on both desktop and mobile. I gave you two codes to remove on both, or just remove on mobile.
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Remove on both desktop and mobile.
<style>
body.gradient {
padding: 0 !important;
}
</style>
Remove on mobile only
<style>
@media only screen and (max-width: 989px) {
body.gradient {
padding: 0 !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hello @justaguywithsom ,
I have checked your store link and code, the border appearing is because of the padding you with the body tag https://prnt.sc/X1kQQBEdJtgD
Please add the below-mentioned code to remove this padding.
Add the code at the bottom of the theme.liquid file before <body> tag and save.
<style>
body {
padding: 0px !important;
}
</style>
Output will be like this -:
I hope the code helps you.
Please share if you have any queries.
Thank you.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024