-
Hi,
i have added a auto login and logout code, but it is not aligned properly in the menu bar. Can you help me to fix this?
This is the code I have used.
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 .= ‘- ‘. $loginoutlink .’
‘;
return $items;
}
-
HB-Themes support team typically replies to all topics within 48 hours except on weekends and public holidays. You must register to post topics.
Forum Categories
- Highend WP Theme 25,503
- Aegaeus WP Theme 1,616
- Requests and Feedback 133