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 and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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 and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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;
}
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