someonebetter
New Member
I'm doing a style.php CSS file so I can use some dynamic variables in the CSS within a Wordpress installation:\[code\]<?php header("Content-type: text/css"); ?>\[/code\]and so on.How can I access a global variable from within the style.php file or pass a variable to it?The code I'm trying to get to work within the CSS is like\[code\]$maincolor = $cap->br_main_color;\[/code\]Also:
- Ignore the caching issue. This is just a personal project.
- Passing the variable in the link to the stylesheet is too complex for this (in my opinion).