Hi, when adding a new page to my Shopify store, I randomly have a blank section between my heading and title of page. It’s happening for my “wholesale” page and “contact us” page
The problem here is that an App adds a child to your sites <body> and it breaks the layout. Also you have an extra announcement bar..
Go to Customizer => Theme Settings (cog icon button) => Custom CSS and paste this code
html body {
display: flex;
flex-direction: column;
}
.shopify-section-group-footer-group {
margin-top: auto;
}
hi, this didn’t do anything. When clicking on the blank space it says its apart of the header
hi this doesn’t do anything. Anytime I create a new page and click “view” this blank space comes up that’s attached to the header
Hey @Chvntelle
Do you have the page disabled? I see this when I land on the page.
Let me know.
Best,
Moeed
Hi, ive just set both pages to visible
Hey @Chvntelle
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code in the bottom of the file above </ body> tag
<style>
@media screen and (min-width: 768px) {
html, body {
display: flex !important;
flex-direction: column !important;
}
}
</style>
RESULT:
If you require any other help, feel free to reach out to me. If I managed to help you then a Like would be truly appreciated.
Best,
Moeed
I appreciate this! Would you be able to show exactly where to find and place the code?
In the end of your theme.liquid file right above
Best,
Moeed
I see that you’ve added Moeeds code, so can’t say why mine did not work for you.
However, the second part, is important too.
What I see now:
Then I add the second part of my code:
.shopify-section-group-footer-group {
margin-top: auto;
}
Would be interesting to see why my solution did not work for you. Avoiding theme code edits will make your future theme updates easy.
Hi Tim, appreciate for the help but I just added some extra padding to the bottom of the form and it was fine after!
Whatever suits you, but it will happen on any page which is shorter then your browser window. Also consider that some monitors are higher then others…




