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?
Leave a Reply
You must be logged in to post a comment.
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?
You must be logged in to post a comment.
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.
You can get the current user login.