Jump to content

Archived

This topic is now archived and is closed to further replies.

chamois_blanc

Show/hide for logged in/out users

Recommended Posts

chamois_blanc

What's the recommended way to show/hide a section for logged in/out users? Thank you

Share this post


Link to post
Share on other sites
Simon

Check the body classes in your page, should be logged in/out classes there.

Share this post


Link to post
Share on other sites
chamois_blanc

Thank you for the suggestion. Using css to hide a section for non logged-in users does not seem safe enough. I guess I would need to write some javascript to remove the sections entirely. Not sure if that would break some PL5 functionality. I think I will explore other options like the 'Hide This' wordpress plugin.

Share this post


Link to post
Share on other sites
chamois_blanc

Looks like the [is login][/is] and [is logout][/is] shortcodes from the Custom Content plugin are the best way to go.

Share this post


Link to post
Share on other sites

  • Similar Content

×