Canopy Theme - How to force submenu to be one column

Solved
tmaciejewski
Visitor
3 0 0

tmaciejewski_0-1698135421533.png

On desktop view, the sub-menu splits into two columns whenever there are more than 10 items. I want to force one column. How do I force all items to list in one column?

 

Thank you! 

Accepted Solution (1)
Moeed
Shopify Partner
3016 753 911

This is an accepted solution.

Hey @tmaciejewski 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.main-nav .nav-item.drop-norm .sub-nav-inner {
    display: block !important;
}
ul.sub-nav-list {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}
</style>

RESULT:

Moeed_0-1698136157091.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 6 (6)
Moeed
Shopify Partner
3016 753 911

Hey @tmaciejewski 

 

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
tmaciejewski
Visitor
3 0 0

da-kine-hawaiian.myshopify.com

Moeed
Shopify Partner
3016 753 911

This is an accepted solution.

Hey @tmaciejewski 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.main-nav .nav-item.drop-norm .sub-nav-inner {
    display: block !important;
}
ul.sub-nav-list {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}
</style>

RESULT:

Moeed_0-1698136157091.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
tmaciejewski
Visitor
3 0 0

That worked. Thanks so much!

Moeed
Shopify Partner
3016 753 911

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
PageFly-Theodor
Trailblazer
200 32 36

Hi @tmaciejewski 
This is Theodore from PageFly - Shopify Page Builder App.
For solving the problem about the How To Force Submenu To Be One Column, let’s try this solution:

Online Store ->Theme ->Edit code
Assets ->style.css

.main-nav .nav-item.drop-norm .sub-nav-inner{
	display: flex !important;
    flex-direction: column !important;
}

 


I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.