I just finished my theme options today and everything works great. I can check them with “get_option(‘color’);” and it works, too!
Now I want to make my stylesheet dynamic so I created a file called “style.php”. I included it under the normal “style.css”.
BUT
when I try to use “get_option(‘color’);” it first said I didn’t defined the function. So I included at the very top of “style.php” this: “require_once(‘wp-blog-header.php’);”.
Now everything works and I can see that the informations in “style.php” are coreect but It doesn’t takes effect on my site^^
How do you create your dynamic stylesheets?


Is it common to do it this way? My last WordPress theme was developed before 2 years.