Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The plugin’s logout link defaults to the site’s homepage. If you are clicking a logout link that does not go to the site’s home page, that would be a link that is generated by WordPress or another plugin. Likely it uses wp_logout_url() to generate the link and that can be filtered with the logout_url filter.

    There’s a broader discussion of this along with example code snippets here:
    https://rocketgeek.com/tips-and-tricks/redirecting-wordpress-login-and-logout-urls/

    Directly overriding this along with a number of other WP defaults is made easy with the Advanced Options extension that is available to premium support subscribers:
    https://rocketgeek.com/plugins/wp-members/extensions/advanced-options/

    Thread Starter sharon135

    (@sharon135)

    I do apologize for the confusion on my part. This is the first time I have used WP-Members so the learning curve is long. I did look over your redirect link but having difficulty interpreting for my purposes.

    Basically I have on the main nav bar a log off button (custom link) as a submenu under login button. I simply want the log off button to log off and redirect to public homepage. I currently have the log off menu button redirected to the public homepage (https://www.waterstone.celebratingyourjourney.com).

    I found your log in status widget but can’t place it within the main menu bar log off button. Only on home area, and sidebars. Any ideas? I really don’t want a sidebar of your log in status widget nor on the home area. I temporarily have it in the sidebar on member’s homepage.

    All your other log in, reset, change, forgot password/username all work after creating pages for them and using your shortcodes. But really don’t want a log off page, just a functional log off button on nav bar that can be seen by both logged in and logged off viewers.

    Thanks for any input on this.

    PS I am considering your premium, but client is on a tight budget and don’t think they would agree to an annual plug in fee for this. I am actually a volunteer helping my homeowner association create a new website. No pay on this one. But if I end up using your plug in on more paid sites in the future, I will consider it for myself if it can apply to all sites I use it in. My apologies.

    • This reply was modified 8 years, 2 months ago by sharon135.
    Thread Starter sharon135

    (@sharon135)

    I think I just figured it out! I thought, why not simply add ?a=logout to url redirect like you had in code. It worked! Guess I was trying to make it more complicated than necessary. Sorry for bothering you.

    • This reply was modified 8 years, 2 months ago by sharon135.
    Plugin Author Chad Butler

    (@cbutlerjr)

    No bother at all – glad you got things worked out the way you want them. What you mentioned is actually the easy way when the link is one that you are creating yourself. The link I provided is more geared toward working with logout links that are generated by the WordPress wp_logout_url() function.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Log off link button redirect to homepage’ is closed to new replies.