Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #235845

    Wondering if there is any options when logged out you see “Log In” and when logged in, you see “Log out” and maybe a few profile links in the top navigation ??

    #236043

    Hi eberswine!

    Thank you for using the theme. I hope you’re doing great.

    You can add this on functions.php:

    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;
    }

    For further customization, please visit Werkpress.

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.