Archived topic
several (drop down) menus in secondary navigation
9 replies · Started by Helmut on August 21, 2022
Hi, I want to do this:
I am using a secondary navigation menu and I want to try to add a drop down menu into this - e.g. all the categories (or some pages..)
Is it possible to do so?
Hi there,
Not sure if I fully understand.
Have you tried creating a menu using the WP menu builder:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#creating-a%C2%A0drop-down-menu
Then assign it to be the secondary navigation?
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#setting-a-theme-location
Let me know :)
Hmm..as far as I understand, I can assign a menu TO BE the secondary menu.
What I am trying is this:
Using more than one drop down menus in the menu bar (where the secondary is located).
So f.e.
drop down menu 1: Page 1, Page 2, Page 3...
drop down menu 2: category 1, 2, 3....
Hi Helmut,
It’s possible.
In Appearance > Menus. Create a new menu for your secondary menu.
Then a custom link, and its URL should be #.
Then, add the categories, and place them under as a sub page of the custom link.
Hi Fernando, I see how this works, BUT: if I do so, the other drop down menu in the secondary menu disappears. As far as I see, I can just assign ONE menu to the secondary menu bar.
What I want to do is to assign at least to or three drop down menus to appear there.
Why not add the Menu Items from different menus in one menu so that they all appear in the secondary nav?
this is a possibility, of course. But for me 2 drop down menus would make more sens - one for sites / topics and the second one for all categories. And f.e. a third one with all contact possibilities. If I put them all in together, there is pretty much unused space...
I've seen that there are a few plugins wich do so, but I am not sure if they work with GP premium.
What you can do if you want different menus in the Secondary nav is to add the other menus through a Block Element hooked to inside_secondary_navigation.
I had time to work on this - and this works quit well.
Just one thing; I want one Link to a page and the drop down menu to be shown next to each other (align left).
Now the drop down menu is left and the other Links are centered (but should be left).
*edit* I've found another solution, I made a menu directly in the customizer-section - and this worked as well.
I see. Glad you found the solution!