How to set 2-3 columns for menu dropdown ? As well removing the footer banner

Posted in: Newspaper
Post count: 7

Hello, how can we set menu dropdown box to 2-3 columns instead of 1 column ? as well removing the footer banner

this is our site : gamingbean.com

Post count: 20688

Hi,

I believe such an option may be added for the cloud header menu element, in a future update.

For the moment with a theme setting it is not possible. However I could give you a CSS code for it
2 columns – http://prntscr.com/n9w5z3

.menu-item-49 > .sub-menu{
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
width: 20em!important;
}

3 columns – http://prntscr.com/n9w6a4

.menu-item-49 > .sub-menu{
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
width: 30em!important;
}

This code can be entered in the theme panel custom CSS code section
http://prntscr.com/n9w7ed

I can modify it if needed, or if it does no properly. It will apply only to that menu item, the one with the dropdown. Let me know.

Thanks

Post count: 7

**Edited with latest below

  • This reply was modified 7 years by jamestan1987. Reason: adding new comment
Post count: 7

Hi, would like to ask is there a proper css code for phone size ? when i place that code on mobile phones, it doesn’t dropdown the box or even break the whole menu when clicking the arrow to drop it. please do advise a nice css code for 3 columns to fit in. or maybe 2 will do. do include the screenshot as well. as i tried copy paste your code(it doesn’t match the screenshot code) from here, have to manually type out the whole code from your screenshot.

Post count: 20688

You could do something like this. For example enter the 3 column code in the desktop and tablets fields in the advanced CSS section
http://prntscr.com/naf7uo teh 3 column layout looks alright in desktop and tablet sizes
http://prntscr.com/naf8a1

In the phones field use something like this – http://prntscr.com/nafbws
http://prntscr.com/nafc3t

.menu-item-49 > .sub-menu{
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
}

Or in 2 columns maybe – http://prntscr.com/nafcjy

.menu-item-49 > .sub-menu{
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
}

Two columns on phones would be better in my opinion, try both and choose the method you like best. Let me know if there is a problem I missed, or you have more questions.

Copy the code from here, no need to manually type it, works just fine when I try it. Should be no problem.

Post count: 7

Hi, i tried using the 2 columns code, and when i went to click on the arrow dropdown, it brings me to link with # at the end, and doesn’t drop the box. It works sometimes only and not always showing the dropdown, similar to adding a empty link menu. Please assist how to prevent that # from coming out and making the dropdown works 100%

Post count: 35449

Hi,

Please try this code for mobile menu -> https://www.screencast.com/t/gglCHTVVrKn
.sub-menu {
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}

Set the code in Theme panel > Custom code> Advance css> Phone

Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.