treehouse : what would you like to learn today?
Web Design Web Development iOS Development

CSS injection to Wordpress site loses all styles

  • I've just started preprocessing CSS, using Coda, Codekit, and MAMP. It all works pretty well except when Codekit tries to 'inject' a CSS change into my Wordpress theme. Thats when my screen re-draws and I get a page free of all CSS styles. When I manually reload the page the site looks correct, and shows my changes.

    In the Incident57 help page Bryan Jones does give some tips for browser re-loading issues: first restart Codekit and the browser (didn't help), and second look for:

    any scripts that manipulate the contents of the HEAD element (such as scripts that dynamically load other CSS files into the page), they might be conflicting with the way CodeKit injects changes.

    Well Wordpress has lots of stuff in the head, like the wp_head template hook, which is essential, and loads the most of the CSS, Javascript, etc. So, how to get the CSS injection to work properly with Wordpress.. anyone?