custom css application setting

custom css application setting

by Anderson Hsu -
Number of replies: 1

Dear all, 

Would it be possible to setup the setting of custom css only take effect when user login in ?

.availabilityinfo   { display:none;}

When User use anonymous , it will not take effect. Thank you.


Average of ratings: -
In reply to Anderson Hsu

Re: custom css application setting

by Mark Sharp -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Depends on your theme, but look in your body tag in the html. Hopefully you'll see a class "loggedin" or something like that (if you're logged in obviously).

If you do, then you could do

.loggedin .availabilityinfo {display:none;}