Logout redirect to site's main page

Is there a way to create a simple logout redirect that returns the member to the site’s main page? I found a few php codes that supposedly would do this, but I can’t seem to integrate them to work with my menu design. The php coded links return a text-based link that will not work with this design, as I’m using buttons in the menu. Is there any clear instruction on how to do this?

Thanks in advance for the help.

Isn’t that the default WordPress behavior?

My guess is that another plugin is interfering (it’s not s2).

My site automatically redirects people to the main page when they log out. Using s2Member Pro with no custom code.

1 Like

That’s what I thought.

It must be something else interfering (not s2).

I forgot to mention that, as it stands right now, when someone logs out from my S2M environment, they are returned to the default WP login screen. If they continue with the login from there, it will take them into the wp dashboard, instead of the “member area”. I’m a bit baffled.

Hmmm…I need to re-check everything then. Something’s not right.

login from there, it will take them into the wp dashboard, instead of the “member area”

You may want to look at this setting: _WP Admin > s2Member > General > Member Profile Modifications > _
Redirect Members away from the Default Profile Panel

And: WP Admin > s2Member > General > Login Welcome Page

:slight_smile: