Archived topic
can I call a menu from shortcode
8 replies · Started by Silvio on April 27, 2019
Hi community,
I want to embed a menu (as a filter) at a certain place on a page. Is this possible via a shortcode?
Does anyone know maybe a plugin?
Hi there,
You could use this plugin: https://wordpress.org/plugins/widget-shortcode/
Then add a menu widget to the area and call it using the shortcode.
Let me know :)
hi Tom,
i found this thread while trying to display my Menu inside a block.
The Shortcode for some reason is not working. I have created the menu widget inside the Widget Shortcode Plugin.
I paste the shortcode [widget id="nav_menu-8"] inside the block but the menu is not displaying.
I can's see what's wrong.
If you have anything in mind please throw it,
cheers!
Hi there,
have you tried the Navigation Block that came WP 5.9 - i think it has a stacked ( vertical ) orientation:
hi David,
i tried the Navigation block but it doesn't take into account the customizer styling settings. Should i style it with external CSS?
Also 2 font awesome menu item icons i have created to float right are not displaying in the frontend even though i can see them in the builder.
cheers
What Navigation is it ? The Primary or the Secondary Nav ?
The Primary
Its not easy to do as the nav is designed to be hooked in.
See my reply here which explains how to a) create a Shortcode that outputs a Hook and b) how to Hook the navigation into it.
https://generatepress.com/forums/topic/primary-navigation-shortcode/#post-1941426