HOW-TO: Hide Widget When User IS Logged In
-
This is not a support question, but a helpful answer for others if you’ve had the problem I was encountering:
My blog reads like a story and visitors to my blog who are NOT logged in will see a message at the top of any blog entry they access that they should begin with my first blog entry and read them sequentially, like it’s a story.
For users who sign up, this message is invisible.
All I had to do was add a checkmark next to
Add 'widget_content' filter
at the bottom of the Widget Admin Page, then open the widget that displays the message at the top of each blog entry, and in the new
Widget logic:
field below the widget content, I added:
!is_user_logged_in()
and saved the widget. The exclamation mark at the start of that logic statement indicates that the widget will display if the user is “not” logged in. If the user is logged in, this widget is hidden from the user.
Hope this helps others!
- The topic ‘HOW-TO: Hide Widget When User IS Logged In’ is closed to new replies.