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

    (@cbutlerjr)

    Hmmm… I don’t think the plugin adds a logged-in class to the body. Maybe your theme is doing that with is_user_logged_in?

    That would be the way to do it though if you are adding a body class. In the appropriate template in your theme add a condition for if is_usr_logged_in() is true, then add your class (it may already be there for the logged in state).

    Thread Starter PoseLab

    (@javitxu123)

    Hi Chad

    Yes, My theme is adding to the body the class logged-in with the body_class function. Can I add a class to an element of blocked pages?

    Plugin Author Chad Butler

    (@cbutlerjr)

    I would probably look at “Add Classes by Filters,” the use the filter function to make a determination if the page is blocked. If pages are not blocked by default, then blocked pages would have a post meta of “block”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a class to body of blocked pages’ is closed to new replies.