JacquiiDesigns
Well-known member
I'm trying to wrap a conditional statement around the following code in Extra.css template.
I've tried both of the following:
Is it even possible to use conditionals in the extra.css? I thought yes - but these conditionals aren't working correctly.
Can you suggest a correct conditional so that the code above is hidden for guests but shows for logged in users?
J.
I've tried both of the following:
Code:
<xen:if is="!{$visitor.user_id}">
/* no Events tab in navbar */
li.navTab.events{
display: none !important;
}
</xen:if>
Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 1}">
/* no Events tab in navbar */
li.navTab.events{
display: none !important;
}</xen:if>
Is it even possible to use conditionals in the extra.css? I thought yes - but these conditionals aren't working correctly.
Can you suggest a correct conditional so that the code above is hidden for guests but shows for logged in users?
J.