Shopify themes, liquid, logos, and UX
My menu and sub-menu appears on hover.
As you can see in the picture below, the names of my pages are not shown in full as the menu is short.
Is there a way to make the sub-menu box wider so the page names show in full? OR change the text size so it appears smaller and fits in the box.
Solved! Go to the solution
This is an accepted solution.
- Here is the solution for you @LSAccounting
- Please follow these steps:
- Then find the theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
@media only screen and (min-width: 600px) {
html:not(.no-js) .navigation__submenu[data-depth="2"] {
width: 300px !important;
}
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
This is an accepted solution.
Check this one.
header > div.header__inner > div.header__below-left > nav > ul > li:nth-child(5) > ul > li:nth-child(2) > ul {
width: auto;
}
html:not(.no-js) .navigation__submenu[data-depth="2"] {
margin-left: 0;
}
html:not(.no-js) .navigation__submenu {
--width: 350px;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
- Here is the solution for you @LSAccounting
- Please follow these steps:
- Then find the theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
@media only screen and (min-width: 600px) {
html:not(.no-js) .navigation__submenu[data-depth="2"] {
width: 300px !important;
}
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi,
1. Log into your store and go to customize.
2. Go to Header settings, scroll to the bottom and click custom css,
3.Copy and paste the following:
html:not(.no-js) .navigation__submenu-item {
width: max-content;
padding-inline: 10px !important;
}
The above code will make sure the size of the box is always larger than the content.
The above code solves the problem you postem, but your navbar has an overflow issue, because the user has to scroll to reveal the PDF Forms item.
My PC is 15.6", and I had to scroll. To fix this problem, you can take one of the options below;
You can opt for a vertical navbar (Check Attached Image)
You may opt for a mega menu with lesser main nav links.
Third option is to reduce the number of items on your main navbar, you can move the excess to the footer.
This is an accepted solution.
Check this one.
header > div.header__inner > div.header__below-left > nav > ul > li:nth-child(5) > ul > li:nth-child(2) > ul {
width: auto;
}
html:not(.no-js) .navigation__submenu[data-depth="2"] {
margin-left: 0;
}
html:not(.no-js) .navigation__submenu {
--width: 350px;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025