Option Tree CSS issue
-
I am using the Option Tree plugin with wordpress to create a theme. I want to use a dynamic css file and I understand this feature is built into option tree. I installed the plugin from the add new plugin WordPress option – i’m not sure if that makes a difference?
I have created a dynamic.css file and put it in my themes root directory, and I have linked to it using wp_enqueue_style.
In option tree I have a section called general (with an ID of general) and a setting called Background Image (with an ID of background_image) and have uploaded an image.
In my dynamic css file I have the following code:
body {
{{background_image}}
background-image: {{general|background_image}};;
}but this doesn’t output the image I uploaded in my theme options. Can anyone guide me through the process to make this work please?
- The topic ‘Option Tree CSS issue’ is closed to new replies.