Tagged: Genesis, import style.css, theme stylesheet
Author | Posts |
---|---|
lloydsilver
September 17, 2017 at 2:21 am
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I was very happy to hear we could import stylesheets. Makes it much easier to manage things. But we can’t simply delete the theme’s style.css as it throws off an error. Is there any way of getting around this so at the very least the sheet isn’t loaded to prevent an http request? Thanks |
lloydsilver
September 17, 2017 at 2:54 am
|
I figured this out for Genesis by adding the below to functions.php: remove_action( ‘genesis_meta’, ‘genesis_load_stylesheet’ ); |
Sebastian
September 17, 2017 at 1:39 pm
|
Hey, I’m glad you found a solution for this. Exactly what I would have recommended. Most themes enqueue the main style.css stylesheet via WordPress action hooks. And so can be dequeued in a similar way, albeit with slightly different code to the Genesis example you provided. Thanks for sharing your method 🙂 |