Shopify themes, liquid, logos, and UX
I need help adding a horizontal line in the header between my logo and navigation menu in the Dawn theme
@rere14 - can you share your website link?
@rere14 - like this?
yes but i would like it to be full width
@rere14 - full width is difficult as the header grid structure do not have any element on left and right side of the menu to add border to it
Okay, can you provide the code to what you had before?
Hey @rere14
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.
<style>
nav.header__inline-menu {
border-top: solid 1px black;
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you! how would i be able to make it full width?
Hey @rere14
Remove the previous code and add the new code
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.
<style>
nav.header__inline-menu {
border-top: solid 1px black;
}
.header:not(.header--middle-left,.header--middle-center) .header__inline-menu {
width: 100%;
text-align: -webkit-center;
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you so much!
I'm glad my solution worked for you! 🙂
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
this approach may create issues of spacing on some screens like this
i fixed it. thanks for pointing that out
Awsome! This really helped me. Thank you very much ❤️
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024