This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to hide a Row on a page from logged in users?

6 years ago · Last reply by Andrew Misplon 6 years ago

Hello

I would like to be able to hide a block/row from logged in users only.

I have tried css using many variations of the below
——————————————

#panel-gb130-5d2cbb5c140e9-1-0-0 > .panel-widget-style, #panel-gb130-5d2cbb5c140e9-2-0-0 > .panel-widget-style {
   display: none;
}

—————————————–
.logged-in, #panel-gb130-5d2cbb5c140e9-1-0-0 > .panel-widget-style, #panel-gb130-5d2cbb5c140e9-2-0-0 > .panel-widget-style {
   display: none;
}

—————————————-

but nothing seems to work.

I have tried placing the css in the css panel that appears on the right of the row options and also tried placing it in the custom css section of wp admin. again nothing works.

Can anyone help with solving this please.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 6 years, 7 months ago

    Hi Phil

    Thanks for posting your question.

    Our free support scope is, unfortunately, limited to basic usage and troubleshooting. This is necessary to remain viable, our resources are limited. We can assist with Custom CSS within our SiteOrigin Premium support scope.

    The second rule you posted in your question is close, it should be inserted at AppearanceCustom CSS if you’re using SiteOrigin CSS or at CustomizeAdditional CSS. There shouldn’t be a comma after the logged in class.

    https://css-tricks.com/forums/topic/hide-element-if-wordpress-user-logged-in/

  2. Phil1ooo 6 years, 7 months ago

    It’s OK I got it to work correctly without issues..

    Cheers

  3. Andrew Misplon Staff 6 years, 7 months ago

    Glad to hear you were able to find a solution.

    All the best.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread