Like everyone else, I save information about my site in style files. And I want to create back-end cms so that users can, for example, change <h1> color, size, etc.
So what is the right way to embed PHP code in my CSS files?
Adds this header:
<?php header("Content-type: text/css"); ?>
And change the file extension in the link:
<link rel="stylesheet" type="text/css" media="screen" href="style.php">
Really?
What about javascript? I am repeating tags at the moment <script type="text/javascript">, but maybe there is a way to insert everything into .js files?
Thank!
source
share