Skip to main content
edited tags
Link
Post Undeleted by Nicholas
Post Deleted by Nicholas
Source Link

Custom Stylesheet instead of Inline CSS for Wordpress Customizer API Overrides

I've looked at Wordpress Customizer API and it looks to be able to achieve what I'm looking for; allowing the developer to set aside as many dynamic styles which can later be configured by the Wordpress admin.

However, the recommended mechanism for injecting the styles is really not cool. All guides I've read online and from Wordpress recommend they be added inline to the Head of the document.

With the popularity of such documents flooding the net I was unable to find a definitive guide on how to add these codes neatly to a stylesheet! Can get theme mod() be called from a PHP stylesheet? Sorry please bear with me as I'm just weeks into PHP and Wordpress documentation.

Any suggestions would be nice I'm sure there are many developers who would not accept inline CSS.