Shopify themes, liquid, logos, and UX
On my menu, when dropdown, a menu item is split into 2 lines. I'd like to keep it in a single line. Maybe decreasing the font size or making the box container bigger. (See image attached)
Solved! Go to the solution
This is an accepted solution.
Hi @Armandorangel,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file component-list-menu.css
Step 3: Paste the below code at bottom of the file -> Save
@media(min-width:767px){
.list-menu--disclosure{
width:23rem !important
}
}
Hope my solution works perfectly for you!
Best regards,
Victor | PageFly
Hi @armandorangel,
Can you share you website so we can provide a code specific for you?
Hello @armandorangel ,
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
#top-menu li li a {
padding: 6px 5px;
width: 100% !important;
}
.nav li ul.sub-menu {
width: 300px;
}
#top-menu li li {
width: 100%;
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Didn't work 😞
Hi @armandorangel,
Go to Online store > Themes > Edit code > Assets > base.css, add this code at the bottom of file and click Save
.list-menu--disclosure { width: max-content !important; }
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @armandorangel,
Please add this code at the bottom of base.css code of your file, click Save button
.list-menu--disclosure { width: max-content !important; }
Here is the result
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Hi @Armandorangel,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file component-list-menu.css
Step 3: Paste the below code at bottom of the file -> Save
@media(min-width:767px){
.list-menu--disclosure{
width:23rem !important
}
}
Hope my solution works perfectly for you!
Best regards,
Victor | PageFly
Step1: Go to online store -> Edit code
Step2: Search base.css file
Step3: Paste below code bottom of the css file -> save
.header__menu-item.list-menu__item.link.link--text.focus-inset.caption-large {
width: 24rem !important;
}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025