Jump to content
Sign in to follow this  
mgwaters

Show/Hide Text based on login status?

Recommended Posts

mgwaters

I'd like to show a message above a form on a PAGE if a user is NOT logged in, and hide that same message if a user is logged in. So... IF Logged in {display nothing} ELSE {display message} How would I accomplish this? Thank you!

Share this post


Link to post
Share on other sites
Jackey
You can do this with CSS: [code].logged-in ..... { display: none; }[/code] ...... is the selector for the form. Thanks to PageLines body classes!

Share this post


Link to post
Share on other sites
mgwaters
So simple, yet so beautiful. That worked like a charm! Thank you!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×