Solved

Multi-column drop down menu in Debut theme

aamirch
Shopify Partner
12 0 0

Hello,

I have been trying for hours to figure this out. Two of our drop down menus are too long and we need to split them into two columns. Is there any help or advice? my theme is Debut theme

Accepted Solution (1)
Jasoliya
Shopify Expert
4808 621 1217

This is an accepted solution.

Hi,

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

#SiteNavLabel-solvents { width: auto; }
#SiteNavLabel-solvents ul { column-count: 2; }
#SiteNavLabel-solvents ul li {-webkit-column-break-inside: avoid;page-break-inside: avoid;    break-inside: avoid; }

Note: I have given this css base on current theme.

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here

View solution in original post

Replies 194 (194)

Jasoliya
Shopify Expert
4808 621 1217

Send your store URL so we can check.

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
aamirch
Shopify Partner
12 0 0

laballey.com

Jasoliya
Shopify Expert
4808 621 1217

This is an accepted solution.

Hi,

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

#SiteNavLabel-solvents { width: auto; }
#SiteNavLabel-solvents ul { column-count: 2; }
#SiteNavLabel-solvents ul li {-webkit-column-break-inside: avoid;page-break-inside: avoid;    break-inside: avoid; }

Note: I have given this css base on current theme.

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
giftsatbliss
Excursionist
14 0 2

Hi sorry to jump on this post but i am trying to achieve the same for the drop down named 'Brands' on our website giftsatbliss.co.uk , i would be grateful if you could advise how to split the list into 3 or 4 columns, 

 

Thanks

Jasoliya
Shopify Expert
4808 621 1217

Hi @giftsatbliss 

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

 

.site-nav > li:nth-child(6) .site-nav__dropdown{    column-count: 3;}

Note: This css give base on just console so if you ad and menu then change nth-child(6) value.

 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
giftsatbliss
Excursionist
14 0 2

@Jasoliya wrote:

Hi @giftsatbliss 

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

 

.site-nav > li:nth-child(6) .site-nav__dropdown{    column-count: 3;}

Note: This css give base on just console so if you ad and menu then change nth-child(6) value.

 


Thank you so much for that Jasoliya it has been driving me mad for days 🙂

houseofjay
Tourist
12 0 0

Hi,

 

This is Joycy from House of Jay and We are using Grid Theme (Pixel Union), can you please advise on how we can edit the code to split it into columns as we keep adding more brands and he dropdown is already very long. Our website www.houseofjay.com. Thank you. 

Jasoliya
Shopify Expert
4808 621 1217

Want to set two column on all drop down or for just "Brands" menu? 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
houseofjay
Tourist
12 0 0
Just the Brand.
Jasoliya
Shopify Expert
4808 621 1217

Add this css in Asset->theme.scss file at bottom:

 

@media only screen and (min-width: 767px) {
      .navigation-menu .has-dropdown:nth-child(7) .navigation-submenu {
             column-count: 2;
        }
    }

Note: i have give solution just by console so if you add any menu before "Brands" then change 7 to its sequence number.

 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
houseofjay
Tourist
12 0 0

Thank you so much. It's really a big help..

pogjeniffer
Visitor
2 0 0

Please use below code to split your long column into small ones:

$("#SiteNav li ul").each(function(){
var len = jQuery(this).find('li').length;
if(len > 9){

$.fn.extend(
{
list2Columns: function(numCols)
{
var listItems = $(this).find('li'); /* get the list data */
var listHeader = $(this);
var numListItems = listItems.length;
var numItemsPerCol = Math.ceil(numListItems / numCols); /* divide by the number of columns requires */
var currentColNum = 1, currentItemNumber = 1, returnHtml = '', i = 0;
var classname = $(this).parent().attr('id');

/* append the columns */
for (i=1;i<=numCols;i++)
{
$(this).parent().append('<ul class="column list-column-' +classname+ i + '"></ul>');
}

/* append the items to the columns */
$.each(listItems, function (i, v)
{
if (currentItemNumber <= numItemsPerCol){
currentItemNumber ++;
}
else
{
currentItemNumber = 1;
currentColNum ++;
}
$('.list-column-'+classname+currentColNum).append(v);
});
$(this).parent().addClass('expended-div');
$(this).remove(); /*clean previous content */

}
});


$(this).list2Columns(3);

}
});

www.homeofapk.com/ 

tber
Visitor
2 0 0

Thanks for the quick response, but that didn't work when added to theme.js.

houseofjay
Tourist
12 0 0

For just "Brands" Menu

oztech-buddy
Tourist
9 0 1

Hi

I have similar issue. My site name is: oztechbuddy.com.au
could you plese have a look and help please?

Regards,

Roni

 

Jasoliya
Shopify Expert
4808 621 1217

In which menu you want to make 2 column ? you have all short menu 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
oztech-buddy
Tourist
9 0 1
Sorry, I was playing with the menus. I have put back the long menu again.
Please test.
Its the left-most menu: Apple > Cases >
Jasoliya
Shopify Expert
4808 621 1217

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

#SiteNav .site-nav__item:nth-child(1)  .site-nav__dropdown-container:nth-child(1) .meganav__list{column-count: 2;}
#SiteNav .site-nav__item:nth-child(1)  .site-nav__dropdown-container:nth-child(1) .site-nav__dropdown{width:auto;}
Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
oztech-buddy
Tourist
9 0 1

Hi 

Thanks for your magic Now I have the multi-colmun  🙂
Kind regards,

Roni

oztech-buddy
Tourist
9 0 1

Hi 

My first long menu converted into a multi-colmon dropdown menu. But other long menus still long.

Shouldn't that code going to convert all long menus of the whole site?

 

Apple > Case. This is working fine.

Apple >  W&F Case. Its still a long menu

 

Any idea why its happening?

 

Kind regards,

Roni

Jasoliya
Shopify Expert
4808 621 1217

If you add code for conman then it will convert all menu to 2 column even 3 link in menu. for that we have to add one by one css for all long menu 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
oztech-buddy
Tourist
9 0 1

You saved me once again. Thanks for explaining. I converted all of my long menus into 2-colmun menus.

 

ML2391
Tourist
11 0 8

Hi there!

 

Was wondering if you would be able to help me make my drop down menus 2 columns in the Blockshop theme?

Jasoliya
Shopify Expert
4808 621 1217

Send your store url 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
ML2391
Tourist
11 0 8
Jasoliya
Shopify Expert
4808 621 1217

Add this css in asset->theme.sss file at bottom, and like if work

   .x-menu--level-1--container li:nth-child(5) .x-menu--level-2--list,.x-menu--level-1--container li:nth-child(6) .x-menu--level-2--list{column-count: 2;}
Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
newtoshop1
New Member
8 0 0

Hello Jasoliya

 can you please help. I need 2 column for dropdown menu. The website is https://www.kisnagems.co.uk and its for the last menu heading "more gemstone jewelry"

 

thanks

 

Jasoliya
Shopify Expert
4808 621 1217

add this css in theme.scss file at bottom and like if work:

.site-navigation .navmenu-depth-2 .navmenu-link{padding: 0.4375rem 0rem 0.4375rem 0.5625rem;}
.site-navigation li:last-child .navmenu-submenu{column-count: 2;}
Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
newtoshop1
New Member
8 0 0

thanks for this, it works

 

 

Kevin415
New Member
4 0 0

Hey  Jasoliya,

The "Shop" submenu is too long and it'd like to make it 3 columns. Can you help me? The url is https://weld-usa-development.myshopify.com/

Thank you!

Jasoliya
Shopify Expert
4808 621 1217

Send me the password of store. 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
Kevin415
New Member
4 0 0

I ended up changing the design to avoid the problem, but thank you.

itguyksmith
Shopify Partner
2 0 0

I am having this issue as well with our menus.  We have quite a long list of brands.  Would you be so kind as to guide me on our site dev site? 

pipedream-dev.myshopify.com

password for site is pipedreamdev

Our current theme is "Showcase"

Jasoliya
Shopify Expert
4808 621 1217

then add in style.css file at bottom

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
hannahlizs
Visitor
1 0 0

Hi Jasoliya,

 

I have searched through this whole thread and have not been able to get a multi-column to work on my Brands menu. URL is https://weather-boutique.myshopify.com and password is hannah7

 

If you are willing to help it is greatly appreciated!

Jasoliya
Shopify Expert
4808 621 1217

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss Or theme.css-> paste bellow code in bottom of file

#SiteNav > li:nth-child(2) .side-bar-menu{width:100%;}
#SiteNav > li:nth-child(2) .side-bar-menu ul{column-count: 4;}

 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
ML2391
Tourist
11 0 8

Any chance you know the code to add this to a Shopify 2.0 Blockshop theme?

ocnuk
New Member
14 0 0

Hi,

i've been trying to add multi collum drop downs to my page, i have been reading and trying the replys however i'm not having any luck.

 

Could you help? My website is www.oncloudnineuk.co.uk

 

many thanks

Jasoliya
Shopify Expert
4808 621 1217

For which menu do you want 2 column? 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
ocnuk
New Member
14 0 0

Hi,

 

In Home Decor & Furniture please

 

thanks

Jasoliya
Shopify Expert
4808 621 1217

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss Or theme.css-> paste bellow code in bottom of file

#SiteNav > li:nth-child(3) .site-nav__dropdown,#SiteNav > li:nth-child(6) .site-nav__dropdown{ column-count: 2;}

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
ocnuk
New Member
14 0 0

Hi,

 

I've just done what you've said and unfortunately it hasnt worked?

 

Any other suggestions? thanks in advance !

Jasoliya
Shopify Expert
4808 621 1217

I can see it proper working, where are you adding code?

i cant see you have added code

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
thehemphacienda
Tourist
4 0 0

is it possible to make a multi column in motion theme?

Jasoliya
Shopify Expert
4808 621 1217

send me store url and menu name

Best regard 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
ML2391
Tourist
11 0 8

How to add multi-column to navigation menu in Boost 2.0 Shopify theme?

Store preview:

https://guldzjcsigl69efw-22203197.shopifypreview.com

thehemphacienda
Tourist
4 0 0

Hi the theme is motion 

https://thehemp-hacienda.co.uk/

Jasoliya
Shopify Expert
4808 621 1217

Hi @thehemphacienda 

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss Or theme.css-> paste bellow code in bottom of file

.site-nav > li:nth-child(3) ul{column-count: 2;}

Note: you have to make your menu text smaller its too big now.

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
thehemphacienda
Tourist
4 0 0

thanks it does work.ive tried making text smaller but the width is too wide it possible to open up a menu heading (knowldge centre) to a page of clickable tiles instead ?