O Old Nick Well-known member Oct 20, 2020 #1 Hello, In templates we can use this : Code: <xen:if is="!{$visitor.user_id}"> This content will show to guests </xen:if> but in extra.less how can i apply a custom css only for visitors ? Thanks !
Hello, In templates we can use this : Code: <xen:if is="!{$visitor.user_id}"> This content will show to guests </xen:if> but in extra.less how can i apply a custom css only for visitors ? Thanks !
Solution P P Paul B Oct 20, 2020 Use this: Less: [data-logged-in="false"] { .p-pageWrapper { background-color: orange; } }
P Paul B XenForo moderator Staff member Oct 20, 2020 #2 Use this: Less: [data-logged-in="false"] { .p-pageWrapper { background-color: orange; } } Upvote 2 Downvote Solution
O Old Nick Well-known member Oct 25, 2020 #3 is it a way to display something only for moderators and administrators with CSS ? Upvote 0 Downvote