Hello, I am trying to add a login option to my nirvana theme. I am doing it by adding code to functions.php file. Now when I ad the code to display my log in this is what I get.
This is the code I use to display the log out option.
function autov_add_loginout_navitem($items) {
$login_item = ‘<li id=”login”>’.wp_loginout($_SERVER[‘REQUEST_URI’], false).’
‘;
$items .= $login_item;
return $items;
}
add_filter(‘wp_nav_menu_testmenu_items’, ‘autov_add_loginout_navitem’);
Any ideas on how to remedy this issue, and thanks in advance for the responses.
-
This topic was modified 8 years ago by jdelgado96.
-
This topic was modified 7 years ago by Zed.
-
This topic was modified 7 years ago by Zed.