• Resolved offpeakdesign

    (@offpeakdesign)


    I’m using a block editor and within a column I have a blog post content element inside. I don’t think I can use the shortcode method to hide it. I want to hide the blog post element (a block element that shows blog posts) when visitors are logged out. Any idea how I can achieve this? Can I use css to hide elements when users are logged out?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If you’re using CSS, you’re not actually hiding it. It may not show in the browser, but it’s in the doc, which means it can be viewed by any user (bot or human) who views the doc.

    You should use [wpmem_logged_in] to display/not display it.

    Thread Starter offpeakdesign

    (@offpeakdesign)

    Gotcha. I was able to do what I needed by adding page builder elements, then switching to classic editor and adding your shortcode. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘css for hiding area if logged out’ is closed to new replies.