my changes to preset styles grow longer and longer in the Dejavu Admin-Panel "custom CSS".
As this part of style changes is transferred with every page again and again I tried to put that out into an extra style - sheet.
Having tried several approaches to be the last CSS that is parsed by the browser I came up with following solutein
put into Admin-Panel "Custom CSS" following line
@import url("http://SITURL/wp-content/themes/dejavu/custom.css") screen;
now I can put all CSS Changes (after they are final, I try them out in the Admin-Panel) into this custom.css and preserve them through framework updates.
Following Problems I encountered
1. Apache didnt deliver my custom.css with an error "resource interpreted as stylesheet but transferred with MIME type text/html"
Solution: copied style.css into new name custom.css, then updated the content to be my original custom.css (???? why ??? - anyways, it worked)
this Error was only visible in Chrome Develop-Panel / Resources, by the way a nice to have addition to firebug as it pinpoints all errors easily
2. Webkit browsers didnt import my file if it didnt carry following line in the first line: @charset “UTF-8″;
This Problem I encountered some weeks ago when I played with another theme, took me 1 entire day to figure that out
How to test for dummies:
put some css code to the end of styles.css like
#header{background-color:black;}
body {background-color:black;}
then put it also into custom.css like
#header{background-color:yellow;}
body {background-color:yellow;}
now you see immediatly if it works.
Maybe it saves someone new to theme creating (like me) some hours













