Shopify themes, liquid, logos, and UX
Is there a way with code to increase the spacing between my top level Mega Menu items when in Desktop Mode? (Just looking to increase the spacing between the parent menu items, and not the spacing of the children/grandchildren menu items)
I am using Shopify Dawn 10.0 theme. Below is link to the website:
Thank you.
Solved! Go to the solution
This is an accepted solution.
Hello @bet
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.
.header__menu-item {
padding: 2.2rem !important;
}
Hello @bet
Its Artzen Technologies! We will be happy to help you today.
You can try to follow these steps:
Go to Online Store -> Themes -> Actions -> Edit code.
Go Assets folder -> theme.liquid file.
Add the following code in the bottom of the file above </body> tag
<style>
.mega-menu__link.mega-menu__link--level-2.link {
margin-bottom: 10px;
}
</style>
like this:
Let me know if need further assistance
Regards,
Artzen Technologies
Hi @bet
Follow these Steps:
Go to Online Store Edit Code Find theme.liquid file or base.css
Add the following code in the bottom of the file above </body> tag
div .mega-menu__content{
padding-top: 50px;
}
RESULT:
I added an image to clarify where the extra space is needed.
Follow these Steps:
Go to Online Store Edit Code Find theme.liquid file or base.css
Add the following code in the bottom of the file above </body> tag
.list-menu li{
padding-left: 5px;
padding-right: 5px;
}
Hi @bet
Please add this code to bottom of your base.css file in Online store > Themes > Edit code
.mega-menu__link--level-2:not(:only-child) { margin-bottom: 20px !important }
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
Please see the image I added to clarify where the spacing is to be increased.
You can try to follow these steps:
Go to Online Store -> Themes -> Actions -> Edit code.
Go Assets folder -> theme.liquid file.
Add the following code in the bottom of the file above </body> tag
<style>
.header__menu-item.list-menu__item.focus-inset {
padding: 12px 20px;
}
</style>
Please use this coded instead of
summary.list-menu__item { padding-right: 5rem !important; }
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
Hello @bet
Its Artzen Technologies! We will be happy to help you today.
You can try to follow these steps:
Go to Online Store -> Themes -> Actions -> Edit code.
Go Assets folder -> theme.liquid file.
Add the following code in the bottom of the file above </body> tag
<style>
.mega-menu__link.mega-menu__link--level-2.link {
margin-bottom: 15px;
}
</style>
Let me know if need further assistance
Regards,
Artzen Technologies
This is an accepted solution.
Hello @bet
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.
.header__menu-item {
padding: 2.2rem !important;
}
.header__menu-item {
padding: 2.2rem !important;
}
----------------------------------------------
Your solution above added the extra space between the main parent menu items like I wanted but it also added extra white space above and below the parent menu items and in so doing it pushes down all the info that is below the parent menu. Any possible code adjustment that would not create this extra white space above and below the parent menu?
Hello @bet
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.
.header__menu-item span {
padding: 10px !important;
}
I'll stick with your first solution. Thanks for your help.
Hello @bet
Its Artzen Technologies! We will be happy to help you today.
You can try to follow these steps:
Go to Online Store -> Themes -> Actions -> Edit code.
Go Assets folder -> theme.liquid file.
Add the following code in the bottom of the file above </body> tag
<style>
.header__menu-item.list-menu__item.focus-inset {
padding: 12px 20px;
}
</style>
Let me know if need further assistance
Regards,
Artzen Technologies
User | RANK |
---|---|
210 | |
168 | |
70 | |
55 | |
53 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023