latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Add Logout Link in Menu Nav

Home Forums Community Forum Add Logout Link in Menu Nav

Tagged: 

This topic contains 1 reply, has 2 voices. Last updated by  Eduan 4 years, 4 months ago.

Topic Author Topic
Posted: Saturday Aug 25th, 2012 at 10:45 am #23055
Mike Waller
Username: seozones

I want to place a Logout link in my main Menu nav bar (after user logs in of course). I’m using Menus under Appearance in my dashboard. Also, what would the php code and css be to add that link in? I currently have a Login link in the menu bar and would like it replaced with Logout if user is logged in.

I have the s2member Pro version so is there an easy way to add this logic in?

And for the url for that logout link, what would it be? I have this but it’s not working:

Logout

My url is: http://jsc.seozones1.com

Thanks for your help!

  • This topic was modified 4 years, 4 months ago by  Eduan. Reason: Moved to the customer support forums

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Saturday Aug 25th, 2012 at 3:22 pm #23077
Eduan
Username: Eduan
Moderator

Hello Mike,

I believe you can add this using a WordPress conditional to check if the user is logged in. And you would also use the following WordPress functions:
http://codex.wordpress.org/Function_Reference/wp_logout
http://codex.wordpress.org/Function_Reference/wp_signon

Hope this helps. :)

P.S.: Please post any questions you have in the customer support forum, so that the support reps can see it. ;)

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.