Site logo

Archived topic

Add another menu to the main navigation container?

3 replies · Started by Trevis on June 2, 2022

Viewing posts 1–4 of 4

Is it possible to add another menu to the main navigation container, after the primary menu?

I have set up the primary navigation as the standard links to interior pages, but I have also created a separate menu for social media icons, which I would like to position after the primary nav, floating right. The reason I have set it up this way instead of adding the icons to the primary nav is because on mobile, I would like the icons to still appear in the bar, next to the hamburger menu icon, rather than inside the off-canvas panel.

Hi there,

you can use a Hook Element or Block Element - Hook type and set the hook to the menu_bar_items.

https://docs.generatepress.com/article/block-element-hook/

That appears after the desktop menu / and before the mobile toggle.

If you use the Block Element you can use the Social Icons block, or use a GenerateBlocks Buttons block to display the icons.

That is perfect David, thank you once again for your expert assistance. And for pointing out block elements as hooks — I hadn´t discovered that yet. I'm still amazed by GP on a weekly basis, this theme has done wonders for WP site building and your support team is first class. Thanks to Team GP for all of the great work you do and for the thorough help you provide to your users!

Glad to hear that and thank you for your very kind words, we really appreciate that!

This archived topic is closed to new replies.