• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Custom background for a group

Zephyr

Well-known member
#1
Hello, this code don't work, why please ?

Code:
html {
    background: url('@imagePath/xenforo/witcher/bg-header.jpg') center 25px no-repeat black;
     <xen:if is="{xen:helper ismemberof, $visitor, '2'}">
        background: red !important;
     </xen:if>
}
Red background is not displayed for registred members.