Shopify themes, liquid, logos, and UX
Hello!
I am using the dawn theme and my URL is carcleansweden.se.
I recently changed so my menu and logo, icons are on 2 different rows:
I used this code in theme.liquid before the </body> tag in order to split them to 2 different rows:
<style>
@media screen and (min-width: 990px) {
.header--middle-left {
grid-template-areas:
"heading icons"
"navigation navigation";
grid-template-columns: auto 1fr;
grid-template-rows: auto;
column-gap: 2rem;
}
nav.header__inline-menu {
display: flex;
justify-content: center;
}
}
</style>
So now it looks great but when I load the website or if I go to another page the old menu pops up for a small second:
Is it possible to fix it? maybe replace some code or something like that?
I would hugely appreciate the help!
Solved! Go to the solution
This is an accepted solution.
Hi @CarCleanCC, thanks for your information.
Upon checking, I noticed that you have successfully customized the CSS on your own. However, you placed the code at the end of the <body> tag (</body>), which causes your customizations to take effect only after the header has been rendered.
In this case, I recommend you continue using the same code but move it to the top, right after the </head> tag. This way, the CSS will be read before the header is rendered, and the issue will be resolved.
I hope my solution is helpful to you, and please feel free to feedback.
Liz
This is an accepted solution.
Hi @CarCleanCC, thanks for your information.
Upon checking, I noticed that you have successfully customized the CSS on your own. However, you placed the code at the end of the <body> tag (</body>), which causes your customizations to take effect only after the header has been rendered.
In this case, I recommend you continue using the same code but move it to the top, right after the </head> tag. This way, the CSS will be read before the header is rendered, and the issue will be resolved.
I hope my solution is helpful to you, and please feel free to feedback.
Liz
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025