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
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