Shopify themes, liquid, logos, and UX
Hello, my navigation menu is currently split on two lines, how can I get it all on one line? It looks like this on smaller and larger screens.
Site: savethedate-neon.myshopify.com
PW: twaosh
Thank you
Your menu has a lot of long words in them. When the space is all taken on one line, it will go to the next one. I have suggestions, but lease note that doing these will make readability harder for your customers (especially for those on smaller screens):
I personally recommend doing any of these to keep user experience good:
@Klmp82,
1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:
@media (min-width: 750px){
.header__inline-menu{
display: flex;
margin-left: 10px !important;;
}
.list-menu--inline{
flex-wrap: nowrap;
align-items: flex-start;
justify-content: flex-start;
}
.list-menu--inline *{
font-size: 10px !important;
}
.list-menu--inline li > a,
.list-menu--inline li summary{
padding-left: 3px;
padding-right: 3px !important;
margin-right: 10px !important;
}
}
You can try this code but, ideally, taking into consideration a good UX (which ultimately is what will generate you sales), you should not use code for this. The menus should be rethought to be as compact as possible.
Kind regards,
Diego
Hi @Klmp82 ,
You can follow the instruction below:
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css->paste below code at the bottom of the file:
@media (min-width: 750px){
.header__inline-menu{
display: flex;
margin-left: 10px !important;;
}
.list-menu--inline{
flex-wrap: nowrap;
align-items: flex-start;
justify-content: flex-start;
}
.list-menu--inline *{
font-size: 10px !important;
}
.list-menu--inline li > a,
.list-menu--inline li summary{
padding-left: 3px;
padding-right: 3px !important;
margin-right: 10px !important;
}
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Best regards.
Thank you, that solution worked for me as well. how do I center the menu? This is what is currently looks like.
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024