Cookie logged in status Discourse / Optinmonster


(Jeroen Van Der Mark) #1

Im trying to figure out if it’s possible to hide a optin bar (subscribe bar/Optinmonster) for users that are logged in.

So if users are logged in they shouldn’t see the bar. I can set these values in Optinmonster (cookie name +/or cookie value)? Does any of you know the solution?

Here is a screenshot:

Thanks in advance!!!


(Joe) #2

You can hide it with CSS for logged in users, would that work for you?


(Jeroen Van Der Mark) #3

Ah perfect it works :slight_smile: Thanks!

This works:

.[class] {
  display: none !important;
}

.anon [class] {
  display: inline !important;
}

Replace [class] with your own.