[Support request] CSS classes for logged in in / logged out?

Home Forums Support CSS classes for logged in in / logged out?

  • This topic has 1 reply, 2 voices, and was last updated 4 months ago by David.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1289792
    Joe

    Hi,
    Quick question:

    While looking through the support forum I saw that there was a CSS class to target logged in users: .logged-in.

    Is there something similar for logged out users? I tried .logged-out but no luck.

    I am adding some widgets to the slideout menu and looking to have one appear for logged in members as well as some just for anonymous visitors. And adding display:none is fine for this task.

    Failing a CSS class, would php be the best way to achieve this?

    Thanks so much! Joe

    #1290015
    David
    Staff
    Customer Support

    Hi there,

    this CSS:

    body:not(.logged-in) {
        /* CSS for NOT logged in user */
    }

    If you want to display the widgets dynamically then you would need a plugin like Content Aware Sidebars.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.