Shopify themes, liquid, logos, and UX
I'm using the Dawn theme on Shopify and ran into an issue with unwanted white space on my page. After some troubleshooting, I found that an empty section was still taking up space, even though I didn’t add it manually.
Hey @DoVis7
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hey, https://a0jje7-i8.myshopify.com/pages/ingredients-benefits password: gucool
Hi @DoVis7
Please, share your store URL. Thanks!
Hi @DoVis7,
Thank you for reaching out to the Shopify community. I'd be glad to assist you. Could you kindly share your store URL and
password (if it’s password-protected) so I can review it and provide you with an update?
Hey, https://a0jje7-i8.myshopify.com/pages/ingredients-benefits password: gucool
1. In your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, find the </body>(press CTRL + F or command + F on Mac)
3. paste this code right above the </body> tag:
<script>
function changePageColor(){
if (!window.location.pathname.includes(`ingredients-benefits`)){
return;
}
var $body = document.querySelector(`#MainContent`);
function _addStyle(styleString) {
const style = document.createElement("style");
style.textContent = styleString;
document.head.append(style);
}
_addStyle(`
#MainContent {
background: #1c1c1c !important;
}
`);
}
changePageColor();
</script>
Well, it sort of solved the issue, but as you can see in the screenshot the blank space moved to the bottom.
Hi @DoVis7 can you share store url?
Hi, https://a0jje7-i8.myshopify.com/pages/ingredients-benefits password: gucool
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