• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Conditionals in css?

viper357

Active member
#1
Hi, I'm not too clued up on css etc. But is it possible to add a conditional to the extra.css template so that I can show something only to registered users? Thanks.
 

M@rc

Well-known member
#2
Hi, I'm not too clued up on css etc. But is it possible to add a conditional to the extra.css template so that I can show something only to registered users? Thanks.
You should add the conditional to the template and display a class to logged in members.
 

Chris D

XenForo developer
Staff member
#7
None of the specific conditionals in the resource you linked to will work and the reason they won't work is that CSS templates do not have the same parameters passed to them that normal templates do.

Specifically, it won't help the OP because there's no $visitor param available to CSS.