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
My header menu is bunched up, how can I put larger spaces between each item? Using dawn theme, here's my site:
https://bladelighter.com/pages/696969
Solved! Go to the solution
This is an accepted solution.
The menu links looks good to me but if you still want to increase the spacing you can do this.
@media (min-width:1366px){
.header__menu-item{
padding-right:3rem;
}
.header__menu-item:last-child{
padding-right: 0;
}
}
Add this to the bottom of your css file, it'll have a name either theme.css or base.css
Hi @jackrivers .
I am Richard Nguyen from PageFly - Advanced Page Builder.
You can go to Onlinestore=>themes=> action=> edit code and add this code on file vendor.css
.list-menu--inline{
padding: 3px 20px !important;
}
Hope this helps.
Best regards,
Richard - PageFly
This is an accepted solution.
The menu links looks good to me but if you still want to increase the spacing you can do this.
@media (min-width:1366px){
.header__menu-item{
padding-right:3rem;
}
.header__menu-item:last-child{
padding-right: 0;
}
}
Add this to the bottom of your css file, it'll have a name either theme.css or base.css
Great! That fixed it thanks. Out of curiousity, what's last-child?
Great! And the last-child will be the last menu link you have. I used it to remove extra spacing from the last menu link.
@lunaworks thanks for provising this solution!
Unfortunately I cannot seem to increase the spacing between menu items still ... they are just too close together.
Can you provide another solution for Studio theme?
Can you send a preview link to your store so I check it out for you?
Hi, I know this is an old thread but I just came across this when looking for help for a similar issue I was having. I don't have any developing knowledge but I used your CSS code and changed it a bit to also increase the gap between my menu items. Just to double check if I've done the correct changes do you mind checking if the CSS code below is ok?
I basically copied the "padding-right" section and added a "padding-left" section and changed the "0rem" to "1rem" because I figured that this must be determining the gaps. Again, this is just by assumption asI have no developing knowledge... Please let me know if I did anything wrong if you have time.
Edit: forgot to add that I am using the Sitar theme
Hey there, yes your css looks fine to me, and you're correct the 1rem which depending on your theme will either be 10pixels or 16pixels is what is being used to adjust the spacing.
If it doesnt work out lemme know 😎
Hi Lunaworks,