- This topic has 7 replies, 2 voices, and was last updated 7 years, 10 months ago by
David.
-
AuthorPosts
-
May 22, 2018 at 9:54 pm #582297
Chris
Hello,
I am moving my site from Joomla to WordPress and am trying to keep some of the old functionality. I am using the secondary navigation menu in the left sidebar of Generatepress.Some of the menu items have more than 10 child items and when I hover over them the child item sub-menu is way too long and disappears off the bottom of the screen.
Is there a way to render the child menu in multiple columns?
Please see my current site sidebar menus here for an example of what I would like to do:
http://www.internationallovesccout.comThanks!
May 23, 2018 at 9:32 am #582781David
StaffCustomer SupportHi Chris
this article on building simple mega menu may be a good place to begin:
https://docs.generatepress.com/article/building-simple-mega-menu/
May 23, 2018 at 11:12 am #582847Chris
Hi,
Thanks for the reply. Adding the Mega Menu got me half the way there, but it looks like it was designed for horizontal menus – not vertical. There are 2 problems:
1. The child menu does not fly out to the right – it covers the first level menu.
2. I used the “mega-menu mega-menu-col-2” – But the 2 columns are not wide enough.You can see the problem here:
http://www.internationallovescout.infoAre there any other css classes that work with vertical menus?
Thanks!
May 23, 2018 at 11:34 am #582861David
StaffCustomer SupportHi Chris,
Look for this section of the CSS you added:
nav .main-nav .mega-menu > ul { position: absolute; width: 100%; left: 0 !important; }and remove the
left: 0 !important;property so it reads like this:nav .main-nav .mega-menu > ul { position: absolute; width: 100%; }May 24, 2018 at 1:38 am #583283Chris
Thanks for the reply!
That solved half the problem. The sub-menu now floats nicely to the right, but it is still too narrow and crowds the menu item text.
I tried adding this to make the sub menu ul wider but it did not seem to work:
nav .main-nav .mega-menu ul .sub-menu {
width:500px;
}Any suggestions?
Thanks!
May 24, 2018 at 2:53 am #583333David
StaffCustomer SupportHi Chris, so the same statement as above ie:
nav .main-nav .mega-menu > ul { position: absolute; width: 100%; }Change the width property to
width: 300px !important;May 24, 2018 at 6:25 am #583491Chris
Perfect! Thanks alot!
May 24, 2018 at 6:33 am #583497David
StaffCustomer SupportYou’re welcome Chris
-
AuthorPosts
- You must be logged in to reply to this topic.