gogo
Well-known member
I want to do something like:
But extra.less doesn't accept conditions. So how do I do it?
Less:
if ($user_custom_field.gender=='female') {
.block.block--category.block--category1 .block-header {
background: pink;
}
} else {
.block.block--category.block--category1 .block-header {
background: green;
}
}
But extra.less doesn't accept conditions. So how do I do it?