How to decrease the width of a mega-menu in Turbo theme?

Solved

How to decrease the width of a mega-menu in Turbo theme?

kittycatmeowmy
Tourist
3 0 1

Hi, I just enabled my first mega-menu and by default, it's using 100% of the screen, which leaves a ton of white space between columns. How would I reduce the width so it is only as wide as necessary to fit the text in each column?

 

Also, it would be great to reduce the padding between each menu item. Thanks!!!

 

I'm using the Turbo theme.

 

https://www.toe-beans.com/

Accepted Solution (1)

PageFly-Victor
Shopify Partner
7865 1786 3130

This is an accepted solution.

Hi @Eden73,

 

This is Victor from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file style.css.

Step 3: Paste the below code at bottom of the file -> Save

 

[data-nav-desktop-details][open] .nav-desktop__tier-2--full-width-menu {

    width: 50% !important;

    margin-left: 25%;

}

 

 

PageFlyVictor_0-1672289677212.png

 

 

 

Hope my solution works perfectly for you!

Best regards,

Victor | PageFly 

 

View solution in original post

Replies 4 (4)

KetanKumar
Shopify Partner
37595 3668 12156

@kittycatmeowmy 

yes, please confirm this 

KetanKumar_0-1672244319261.png

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
kittycatmeowmy
Tourist
3 0 1

@KetanKumarthat's my desired solution, how do I accomplish this layout?

 

Also if it's possible to reduce the top and bottom padding between the menu items, that would be amazing!

PageFly-Victor
Shopify Partner
7865 1786 3130

This is an accepted solution.

Hi @Eden73,

 

This is Victor from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file style.css.

Step 3: Paste the below code at bottom of the file -> Save

 

[data-nav-desktop-details][open] .nav-desktop__tier-2--full-width-menu {

    width: 50% !important;

    margin-left: 25%;

}

 

 

PageFlyVictor_0-1672289677212.png

 

 

 

Hope my solution works perfectly for you!

Best regards,

Victor | PageFly 

 

GemPages
Shopify Partner
5625 1262 1278

Hello @kittycatmeowmy ,

 

It's GemPages support team and glad to support you today.

 

I would like to give you the recommendation to support you so kindly follow the steps below:

 

1. Go to Online Store > Theme > Edit code of your current theme

GemPages_0-1672307759563.png


2. Open your theme.liquid theme file


3. Paste the below code before </head>

<style>
.main-nav__wrapper .nav.nav--combined {
  position: relative;
}
</style>

 

For example,

GemPages_1-1672307928892.png

 

If you require any further information, feel free to contact me.

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center