- This topic has 1 reply, 2 voices, and was last updated 12 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – customize Log in Widget
Hi,
I would like to create a widget to display a “Sign up” and a “Log in” buttons I created. The two buttons should link to the Sign up and Log in pages.
I also need to display a “Log out” button for logged in users.
I can create an HTML text widget with the two buttons with this code:
<a href="http://signuppage"><img src="sign_up.png" alt="Sign Up" /></a>
<a href="http://loginpage"><img src="log_in.png" alt="Log In" /></a>
But I have no idea how to display the “Log out” button instead of these two when a user is logged in.
Anyone can help me?
WP eMember has functions that you can use to determine if a user is logged in or not and then show your content accordingly. This documentation should help:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248