Test CSS Formatting in Real Time on Your WordPress Blog
So the theme customizer is here, and presumably here to stay.
Not only that, it would seem that theme developers are going to be utilizing it – which is of course key to its long term success. I am sure we will be seeing plenty of updates to WordPress’ biggest new feature in future versions, but for the time being, plugin developers will be toiling away to create their own custom functionality.
And today I want to focus on one such plugin – Live CSS Preview.
Real Time Formatting
We all understand the key selling point of the theme customizer – it allows you to test changes to your site, in real time, and then implement them immediately. Whilst the options at this point are relatively limited, I presume they will be expanded upon in the future.
The focus is clearly very much on basic formatting options for users who are perhaps not prepared (or able) to roll up their sleeves and get their hands dirty with some code, which is perhaps why CSS formatting was not included as standard.
However, Live CSS Preview is seeking to redress the balance with one little box:
You will find this box in the sidebar in the theme customizer, and as you might be able to guess, you can use it to make real time changes to your site’s CSS:
The change is literally instant, so this plugin gives you an easy way of experimenting with your site’s formatting.
Where Does it Go?
I was curious to see how the custom CSS is implemented on the blog, and was disappointed to note that it is placed directly within the page:
Ideally the plugin would append custom CSS to a custom.css file – or at least a bespoke custom file created by the plugin. Having the code placed in the page is the least desirable result, and makes it less viable to use the plugin as a full-time solution for CSS editing.
Having said that, in terms of making and observing CSS changes on the fly, I don’t think this can be beaten. Using this in tandem with Chrome’s Developer Tools (or Firebug) makes formatting a site to your liking really easy.
Creative Commons image courtesy of geirarne