WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Logout Link (9 posts)

  1. askjayson
    Member
    Posted 1 year ago #

    Jeff, in the latest version, the logout anchor tag displays as 'welcome' ?

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Where?

  3. askjayson
    Member
    Posted 1 year ago #

    Hi Jeff, when you add the login page to wp menus and in the widget. When the user is logged in the Log In menu item filters to 'Welcome and in the widget as well.

  4. askjayson
    Member
    Posted 1 year ago #

    Jeff, I just updated to Version 6.4-alpha and seemed to have fixed the 'Log Out' link in user links display correctly to "Log Out" versus "Welcome," in the widget, although the wp menu item for the TML LogIn Page still displays Welcome when a user is logged in.

  5. haiderkb
    Member
    Posted 1 year ago #

    I'm getting LOGIN as the link when I'm Logged In. So LOGOUT not showing.
    using latest version.

  6. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Two things - the Login link will only change to logout when using a wp_nav_menu and also when your theme properly utilizes The Loop.

  7. dochara
    Member
    Posted 1 year ago #

    I had the same problem.

    When adding the widget to a sidebar, the logout link appears as 'Welcome'.

    This issue appears to be on line 737 of class-theme-my-login-template.php of version 6.3.8 which reads:

    echo '<li><a href="' . wp_logout_url() . '">' . self::get_title( 'logout' ) . '</a></li>' . "\n";

    I edited that to hard code the logout link for now:

    echo '<li><a href="' . wp_logout_url() . '">Logout</a></li>' . "\n";

  8. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    There's no way that line could cause it to happen, as the method get_title checks that 'login' == $action.

  9. dochara
    Member
    Posted 1 year ago #

    I think it is to do with the way I set up the widget. I'll detail that in case it helps. I don't think it should be that odd a use, but maybe it is.

    1. I am not using a widget when the user is logged out.
    2. I am not using the title in the widget.
    3. The only two options I've set are
      • Show when logged in
      • Show login link (because I assumed it would revert to log out when the user was logged in)

    I see now that my assumption that login would simply become 'log out' was not correct. The logout link is actually appended to the title, which I am not using. I was not aware of that.

    So, my change fixed it for me, but it was not really 'fixing' anything, just making it work in my particular set up. It would be nice to have a 'Show logout link" option, that would just say 'log out'.

    I hope that explanation helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic