Increase Spacing Between Mega Menu Items (Dawn 10.0 Theme)

Solved
bet
Shopify Partner
93 5 23

menu-spacing.png

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:

 

BuyExcelTemplates.com

 

Thank you.

I use Shopify to sell Digital Downloads ❤️
• Top Rated Excel Templates
• Find your perfect Spreadsheet

Accepted Solution (1)
oscprofessional
Shopify Partner
15736 2353 3051

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;
}

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing

View solution in original post

Replies 14 (14)
Artzen_tech
Shopify Partner
521 105 105

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:

Artzen_tech_0-1696487397771.png

 

 

Let me know if need further assistance
Regards,
Artzen Technologies

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
topnewyork
Explorer
153 22 19

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:

topnewyork_0-1696487470989.png

 

Need a Shopify developer?
Hire us at topnewyorkwebdesign.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
bet
Shopify Partner
93 5 23

I added an image to clarify where the extra space is needed.

I use Shopify to sell Digital Downloads ❤️
• Top Rated Excel Templates
• Find your perfect Spreadsheet

topnewyork
Explorer
153 22 19

@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

.list-menu li{
    padding-left: 5px;
    padding-right: 5px;
}

topnewyork_0-1696488754661.png

 

Need a Shopify developer?
Hire us at topnewyorkwebdesign.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
Dan-From-Ryviu
Shopify Partner
5612 1031 1059

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 }

Screenshot 2023-10-05 at 13.34.35.png 

- 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

bet
Shopify Partner
93 5 23

Please see the image I added to clarify where the spacing is to be increased.

I use Shopify to sell Digital Downloads ❤️
• Top Rated Excel Templates
• Find your perfect Spreadsheet

Artzen_tech
Shopify Partner
521 105 105

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>

 

 

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
Dan-From-Ryviu
Shopify Partner
5612 1031 1059

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

Artzen_tech
Shopify Partner
521 105 105

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

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
oscprofessional
Shopify Partner
15736 2353 3051

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;
}

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
bet
Shopify Partner
93 5 23

.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?

I use Shopify to sell Digital Downloads ❤️
• Top Rated Excel Templates
• Find your perfect Spreadsheet

oscprofessional
Shopify Partner
15736 2353 3051

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;
}

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
bet
Shopify Partner
93 5 23

I'll stick with your first solution. Thanks for your help.

I use Shopify to sell Digital Downloads ❤️
• Top Rated Excel Templates
• Find your perfect Spreadsheet

Artzen_tech
Shopify Partner
521 105 105

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

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify