XenForo Conditional Statement with custom user field

L

lucien_lies

Guest
I am using this code to hide the images I use in the forum headers if the users want to hide them, why doesn't it work if I have the custom user field enabled?

Its on my template: category_header.less

there is also a reference on my extra.less to this template: <xf:include template="category_header.less" />

HTML:

Code:
<xf:if is="!$xf.visitor.Profile.custom_fields.removeforumheaders">

.block.block--category.block--category5 .block-container .block-header {
background-image...

Read more

Continue reading...