XF 2.2 Template conditionals in extra.less

Wildcat Media

Well-known member
I want to use a conditional in extra.less that is based on a selection in a custom profile field (a checkbox, to turn a styling element on or off). Is this possible, or is there no context for custom profile fields in this template? (I've tried an example but it's not working.)
 
You might be better off editing the template that displays the front end content and adding a condition there, to add an extra class based on the checkbox status. That conditional class can then be targeted via css
 
Back
Top Bottom