short code

Home Forums Menubar Forum short code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4570 Reply

    So far this seems like what I was looking for. I need to display a custom menu inside a specific page. But I have only found the docs on implementing it in the theme. Is it possible to use short code to call it on only the one page?

    #4571 Reply

    Hi Christina,

    You can use this code in your theme, e.g. at the end of header.php:

    if (is_page ('Your Page Title Here'))
        do_action ('wp_menubar', 'your menu name here');

    Please let me know if this works for you!

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: short code
Your information: