I’m trying to add a link in my header.php file that disappears after a user logs in…So the link only shows for logged out users…Can anyone help with this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your header.php file place this code
Place your link inside the { } where the … is.
See Function Reference – is_user_logged_in() and its related functions for more information.