lucien_lies
Active member
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" />
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:
<xf:if is="!$xf.visitor.Profile.custom_fields.removeforumheaders">
.block.block--category.block--category5 .block-container .block-header {
background-image: url('https://i.ibb.co/TbdZkLK/ergthngjmnm.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.block.block--category.block--category27 .block-container .block-header {
background-image: url('https://i.ibb.co/NSF3PBJ/zona-internacional.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.block.block--category.block--category24 .block-container .block-header {
background-image: url('https://i.ibb.co/ky6t1r0/videojuegos.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.block.block--category.block--category31 .block-container .block-header {
background-image: url('https://i.ibb.co/S0jCtVz/tech.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.block.block--category.block--category12 .block-container .block-header {
background-image: url('https://i.ibb.co/nLTs3GV/peliculas.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.block.block--category.block--category1 .block-container .block-header {
background-image: url('https://i.ibb.co/GV3XGqQ/el-foto-y-proyectos.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</xf:if>