Archived topic
Block Horizontal Navigation Menu 2 Columns
10 replies · Started by Jeff on July 8, 2020
I have a navigation list of our specialties at our clinic that is stupid long. I am trying to make it a 2 column list, but I'm not having much luck.
Hi there,
Would a solution like this work?
https://docs.generatepress.com/article/building-simple-mega-menu/
That would work for the main navigation menu, but this is a horizontal menu added in a block. Would this still work for that?
Ahh you would need some custom coding to make it work with the navigation block.
Would you be able to just use the secondary navigation instead of the navigation block instead?
Not really, I have the nav block below different elements on my pages.
That case you would need some custom coding which is out of the scope of this forum unfortunately.
Usually we can place the secondary navigation wherever its needed. Can you link me to a page where you think it wouldn't work?
The main landing page is a good example.
We could actually make that work with the secondary navigation.
So first upload the image as a featured image:
https://docs.generatepress.com/article/adding-featured-images/
Set the location to above content area for posts:
https://docs.generatepress.com/article/adjusting-the-featured-images/
Then add this PHP snippet to move the secondary navigation to below the featured image:
https://generatepress.com/forums/topic/move-subnav-below-page-header/#post-1350765
Adding PHP: https://docs.generatepress.com/article/adding-php/
I have the php added, but I need the feature image to be full width, not contained. Is there a way to fix that?
Ok, I got it now, thanks for your help!
No problem :)