Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #199240
    #199373

    Anyone?

    #199387

    Hi!

    The theme location name is “avia”.

    //ADD LOGIN LINK TO MENU
    add_filter('wp_nav_menu_items', 'voodoo_loginout_link', 10, 2); 
    
    function voodoo_loginout_link($items, $args) {
    if( $args->theme_location == 'avia' ) {
    $voodooredir = htmlspecialchars($_SERVER['REQUEST_URI']);
    $loginoutlink = wp_loginout($voodooredir, false);
    return $items . "<li> $loginoutlink </li>";
    }
    return $items;
    }

    Cheers!
    Ismael

    #199402

    Great! Thanks for your support. I used ‘avia2’ to use the small menu on top!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Menu names’ is closed to new replies.