Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I have encountered a weird issue, where my page looks normal on pages with content, but on pages without much content such as the login page and search page, it will automatically create a large gap in the announcement bar. I have tried disabling the announcement bar and the gap moved to the main section instead. Has anyone encountered this issue and know how to fix it? Thanks.
this is what it looks like at pages with less content
this happened when i hid the announcement bar
this is what is should look like normally
Hi @cpu235
Would you ind to share your store URL?Thanks!
Thanks for the info, you said this happen if you hide the announcement bar right?
When you take out the announcement bar there are free space that will be vacant, the free space will be going below the header.
If you like to cover that white space we can move the log.in more top. Like this.
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 "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
div#shopify-section-sections--22055551238420__announcement_bar_R7Lep9 {
display: none;
}
div#shopify-section-template--22055550484756__main {
margin-bottom: 100px;
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thanks for the quick reply, it does seem to fix the issue, but I want to keep both announcement bars(light blue and dark blue), is there a way to keep them both and remove just the gap? Thanks.
Actually the issue occurred again even with the code update, do you know any other solutions? Thanks.