dimanche 30 novembre 2014

Loading custom CSS


I've done some searching and can't seem to find the appropriate solution for a particular problem I'm having. I've created an option within one of my themes that allows the user to edit any element such as h1, p, divs, etc. The user can also add styling and I basically just build up a string of identifiers and the styling that the user has chosen.


What's the best way to load this css string? Is it best to just have it as a function call before , or should I programmatically create a 'custom.css' file that then gets enqueued after 'style.css'? I worry about creating a 'custom.css' file just in case permissions become an issue.





Aucun commentaire:

Enregistrer un commentaire