XF 2.0 background image style properties

Ian Hitt

Well-known member
What is the proper way to use a background image style property for a theme? Relative paths to the images no longer work when you change directories form the root to a sub directory. Is there a way to use base_url() in style properties?
 
Relative paths to the images no longer work when you change directories form the root to a sub directory.
They should do.

Bear in mind that css.php itself is always relative to the XF root, so simply using a path in style properties of styles/path/to/image.png should work fine, regardless of whether XF itself is in a root directory or a sub directory etc.
 
Top Bottom