Hi,
I would like to add a wp_loginout( ) to one of the Enfold menus (like it is described here: http://voodoopress.com/add-a-login-logout-link-to-only-one-specific-menu/.
To do that, I need the names of the menus. What are the names of the menus?
Best regards
Chris
Anyone?
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
Great! Thanks for your support. I used ‘avia2’ to use the small menu on top!