Comments Jason Mann started the conversationMarch 26, 2018 at 11:56pmSee example of login field. How do i set up a secure site with a login and password? Thanks 7,242Oliver repliedMarch 27, 2018 at 11:32amHi,pls. add this code to the function.php of the child theme: add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2); function add_login_logout_link($items, $args) { ob_start(); wp_loginout('index.php'); $loginoutlink = ob_get_contents(); ob_end_clean(); $items .= '<li>'. $loginoutlink .'</li>'; return $items; } Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver Sign in to reply ...
See example of login field. How do i set up a secure site with a login and password? Thanks
Hi,
pls. add this code to the function.php of the child theme:
add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2); function add_login_logout_link($items, $args) { ob_start(); wp_loginout('index.php'); $loginoutlink = ob_get_contents(); ob_end_clean(); $items .= '<li>'. $loginoutlink .'</li>'; return $items; }Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver