Hmm, now that I've come to try and put this into action I've stumbled across the rather obvious problem that it is completely pointless.
By including all the CSS data in the URL, each page load has to download the ENTIRE CSS file as part of the URL, which is obviously not acceptable as I may as well just use <style> tags in my HEAD instead.
So ... how would I go about passing a string which is stored in my WordPress database in my style.php CSS file? Basically I just want to output the entire string of data to the CSS file.
At the moment, my beta version of my plugin inserts the styles via <style> tags but that creates very messy HTML and means the CSS information is downloaded on every page refresh.
|