Mrs Langtrees
Member
I am trying to change the font colour of each gender on the member's online widget. Male members will be a blue font, the female members will be a pink font.
I have tried to add an If conditional statement using the variable $user.gender. So if $user.gender == male then add style.
Unfortunately, it will not work? Below is the code I am using to find which members are female or male, then I will add a css class to each gender to change the font colour.
Can anybody help? Thanks
I have tried to add an If conditional statement using the variable $user.gender. So if $user.gender == male then add style.
Unfortunately, it will not work? Below is the code I am using to find which members are female or male, then I will add a css class to each gender to change the font colour.
Code:
<xen:if is="{$user.gender} == 'male'">male<xen:elseif is="{$user.gender} == 'female'" />female<xen:else />none</xen:if>
Can anybody help? Thanks