I would like to add additional styles to the styles.css file before it is sent to the client. Is this possible?
Currently styles.css contains :
/*
Theme Name: My Theme
Theme URI: https://example.com/themes/vanilla/
...
*/
...
html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-size: 62.5%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
// MY ADDITIONAL CSS HERE
I would like to add additional CSS dynamically to the end of that file. Is that possible?
For example, in my index.php:
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
// normal post stuff
moreCSS = $myPost->moreCSS;
addMoreCSSToStyles_css(moreCSS);
endwhile;
?>