Hi,
I am wondering if there's a way to get variables to work in an external CSS file.
Code below:
If this placed in the head section of a page it works fine. In CSS it just outputs as written. Is this possible?
Bit of a pain to paste this into every template rather than edit it in one place and applied everywhere.
Hope I've explained this well enough.
Regards
Ian
I am wondering if there's a way to get variables to work in an external CSS file.
Code below:
- Code: Select all
.logo-banner {
background-image:url(<cms:get_custom_field 'company_logo' masterpage='site-settings.php' />),
url(<cms:get_custom_field 'website_image' masterpage='site-settings.php' />);
background-position:80px 40px, top left;
background-repeat:no-repeat, no-repeat;
background-size:200px, 100%;
}
If this placed in the head section of a page it works fine. In CSS it just outputs as written. Is this possible?
Bit of a pain to paste this into every template rather than edit it in one place and applied everywhere.
Hope I've explained this well enough.
Regards
Ian