Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alvaroj89

    (@alvaroj89)

    I did it by adding the shortcode with a text widget to the menu area of my theme. Then, a little bit of CSS tweaking.

    I still think it would be nice to have the option in future versions for less techy people ;).

    Thanks!

    Thread Starter alvaroj89

    (@alvaroj89)

    Just in case anyone comes here with the same problem… I found a better way to include the shortcode in the menu directly.

    You would have to put this in your theme’s functions.php

    // Register login menu link
    add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
    function add_loginout_link( $items, $args ) {
        $items .= '<li id="login-link">' . do_shortcode('[Alimir_BootModal_Login]') . '</li>';
        return $items;
    }

    Hope that helps!

    You can also do shortcode in UberMenu, but UberMenu is paid for.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Put button in menu?’ is closed to new replies.