[Support request] can I call a menu from shortcode

Home Forums Support [Support request] can I call a menu from shortcode

Home Forums Support can I call a menu from shortcode

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #881745
    Silvio

    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?

    #881776
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #2117820
    Kostas

    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!

    #2117837
    David
    Staff
    Customer Support

    Hi there,

    have you tried the Navigation Block that came WP 5.9 – i think it has a stacked ( vertical ) orientation:

    https://wordpress.org/support/article/navigation-block/

    #2118210
    Kostas

    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

    #2118249
    David
    Staff
    Customer Support

    What Navigation is it ? The Primary or the Secondary Nav ?

    #2118253
    Kostas

    The Primary

    #2118268
    Kostas
    #2118294
    David
    Staff
    Customer Support

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.