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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024