
dynamic css using php problem
I'm trying to help a friend that has a problem with a wordpress based website.
The site is on a shared hostgator linux server and he has just bought a wordpress theme/framework that has a built in "point and click" content/layout/stylesheet builder.
The problem is the theme has the main stylesheet with a php extension and the hostgator server is not parsing it.
Going back and forth between the theme developer and hostgator has sent me round in circles. Theme developer first said "The problem is because of your hosting. Please contact with your hosting provider because as far as we see your hosting can`t work with css files.
It shouldn`t work like that. It looks like your server can`t parse php files as css and that`s why you should contact with your hosting. All normal hostings should work with that because it`s standard nowdays."
So developer says that hostgator need to allow "CSS files to work as .php extension" and they don't know what settings need changing as they are not hosts.
Hostgator say they can make changes if developer tells them what to change!
The developer set the theme up like this to have dynamic css in the wordpress admin. Searching "dynamic css in php" on search engines brings up many site with the suggestion of adding the following to the htaccess file:
<Files style.php>
AddType text/css .php
</Files>
This did output the css but also output the php code as text also so didn't work.
Several other suggestions included adding apache handlers to the htaccess file such as:
AddType application/x-httpd-php .css
AddHandler application/x-httpd-php .css
But neither of these worked either.
Please, can anyone assist in making some sense of what the problem could be?
Thanks
Tony
Connect with me on Google+
:)
Connect with me on Google+
:)
Connect with me on Google+
Connect with me on Google+
Connect with me on Google+