I’m using the ‘Elements’ module to create 2 layouts.. 1 for logged in users, one for logged out users. I’m wondering if there is any way to apply a custom class to these layouts (preferably on the body tag) so that I can do some syling based on each layout?
What this snippet does is, it checks if the current visitor is logged in. If the visitor is logged in, it adds a custom class. Else(meaning non logged in visitors), it will display the default classes.