Skeletor
Active member
I created a custom user field so users can enable/disable the background between 8am and 5pm. The field contains one check box. "on"
The custom userfield ID is called: office
I put this bit of code in extra.css but it does not seem to work. The user field is ignored and the background image is displayed.
Some help needed please
The custom userfield ID is called: office
I put this bit of code in extra.css but it does not seem to work. The user field is ignored and the background image is displayed.
Code:
<xen:if is="{$visitor.customFields.office.on} == 'on' AND {xen:time $serverTime, 'Gi'} >= 8 AND {xen:time $serverTime, 'Gi'} < 17">
@media (min-width: 1025px) {
html {
background: rgba(0,0,0,1) url('http://psymusic.co.uk/images/blank.gif') repeat;
}
}
<xen:else />
@media (min-width: 1025px) {
html {
background: url("http://psymusic.co.uk/images/background/bg15.jpg") !important;
background-attachment: fixed !important;
background-size: cover !important;
}
}
</xen:if>
Some help needed please