Multi-column drop down menu in Debut theme

Solved
aamirch
New Member
11 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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here

View solution in original post

Replies 192 (192)
Jasoliya
Shopify Expert
4723 615 1176

Send your store URL so we can check.

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
aamirch
New Member
11 0 0

laballey.com

Jasoliya
Shopify Expert
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
New Member
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
New Member
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
4723 615 1176

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

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

Send your store url 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
ML2391
Tourist
11 0 8
Jasoliya
Shopify Expert
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

Send me the password of store. 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

then add in style.css file at bottom

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
hannahlizs
New Member
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

For which menu do you want 2 column? 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

send me store url and menu name

Best regard 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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
4723 615 1176

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 are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
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 ?

Jasoliya
Shopify Expert
4723 615 1176

for that need code changes, but you can do smart and fast way by adding this

.site-nav__dropdown-link{ overflow: hidden;text-overflow: ellipsis;}
.site-nav__dropdown>li{max-width: 365px;}

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
DianneOH
New Member
2 0 0

Hopefully this thread is still alive:

 

How would you go about creating multiple columns within the brands dropdown for optical-heights.com?

 

Thank you for your time!

 

@Jasoliya (I'm sorry if this is rude)

Jasoliya
Shopify Expert
4723 615 1176

you have already column in menu .. in which menu want column? 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
DianneOH
New Member
2 0 0

I solved the issue, thank you though! 

 

Sorry about that!!!

thehemphacienda
Tourist
4 0 0

hi thanks ,it did work.

but now ive moved nav bar layout and the wrong column is double drop down.

for example CBD campaign should be 1 single column and Knowledge centre should be 2 or 3 rows if possible . 

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

best regards 

 

hamish 

Jasoliya
Shopify Expert
4723 615 1176

add in any css file

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
Jasoliya
Shopify Expert
4723 615 1176

Hi @ML2391 

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

Note: Its for "SHOP BY CATEGORY" menu only

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

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
ML2391
Tourist
11 0 8

Instead of having theme.css, I have a theme.js (entered the code and it didn't work).

Would this have to be converted to JSON?

Mohammedf
New Member
4 0 0

Hello @Jasoliya 

my store URL www.m-fitaihi.com

I have been trying for days now to create a multi column drop down menu for my theme. under designers, i will have some collection for each designer. could you please advice on the code? I've never use this community before and I'm not sure if that's the right way to go about it. 

sorry if I'm jumping in any conversation 

thanks a lot for your help 🙂 

 

Jasoliya
Shopify Expert
4723 615 1176

So in which menu you want to make two column menu? i think you have all short menu no need. 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
AppOut-Kevin
Shopify Partner
5 0 0

Hello @Jasoliya,

 

I found one of your replies a while ago and was able to integrate it into my site.  As we have grown though our brand menu continues to expand, and if I add a new column now it goes off of the screen.  Is there a way to move the menu to a more central location like some of my other larger menu dropdowns?  For example, the menu for "Our Store" drops down in the center of the screen, despite being the last menu item.  Ideally, the "Brands" menu would do the same.  My site is www.appalachianoutfitters.com.  I appreciate any help you can provide.

 

Thanks,

Kevin

artisan-market
Excursionist
19 1 6

Hi @Jasoliya 

How would I add a drop down menu with 4 columns on a debut theme on page 'makers' 

shop https://artisan-market-online.myshopify.com/

Jasoliya
Shopify Expert
4723 615 1176

Hi @artisan-market 

Send your store password. 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
artisan-market
Excursionist
19 1 6
Hi. It’s rewblu
Jasoliya
Shopify Expert
4723 615 1176

I thing you have already done

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
sidavy
New Member
6 0 0

Hi @Jasoliya,

 

the code is not working for me. I want to split 3 columns in dropdown menu All Categories.Screenshot.png

Jasoliya
Shopify Expert
4723 615 1176

Send me your store url so i can check

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
HC-SD
New Member
3 0 0

Hi Jasoliya,

 

How would I go about getting the multi column dropdown for travelkarma.com? Created in Debut theme.

Jasoliya
Shopify Expert
4723 615 1176

HI @HC-SD 

You can add css like:

 @media only screen and (min-width: 767px) {
       .site-nav__childlist{ column-count: 2;}
    }

Note: you have to remove empty menu from blog "LIFE"

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for bundle page.
Want to get Free review and advice for sale on store ?? just text me here
HC-SD
New Member
3 0 0

Thanks for your help, it works.

 

 

TeamSimpson
New Member
2 0 0

Hello @Jasoliya,

How would you add a multi-column dropdown for Shop on Clearwaterlights.com?

Thank you,