XenForo How to use an image with variations as a background image

K

Kirby

Guest
I might be missing smth, but it seems like I am unable to figure out how to use an image with variations (like publicLogoUrl) as a background image.

Smth. like
Code:

Code:
#myid
{
    background-image: url({$xf.style.getPropertyVariation('publicLogoUrl', 'default'});
   
    .m-colorScheme(dark {
        background-image: url({$xf.style.getPropertyVariation('publicLogoUrl', 'alternate'});
    });
}
might work, but that seems pretty complicated (and kinda inefficient) - there must be a...

Read more

Continue reading...