XF 2.0 If statements in extra.less

Letrix

Member
Looking for something that will change a class's property based on whether another condition. For example

If the username class = X then userTitle will inherit the colour from X.
else userTitle { color: Y }

OR

If the user group = X then userTitle will inherit the colour from (insert class).
else userTitle { color: Y }

In easier words: If the user is in the Admin user group, their userTitle will inherit colours from the .Admin class.

I ask this since custom user titles removes the user title override from the user group. I hope I'm not hard to understand. I'm open to all suggestions. Cheers.
 
Conditional statements of that nature don't work in less templates so you would need to edit the html templates, or better still, have an add-on developed.
 
Back
Top Bottom