Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi,
I’ve been trying to erradicate all render blocking JS and CSS on my site and I’ve hit a snag with: /wp-content/plugins/siteorigin-panels/css/front-flex.css
It currently loads in the header and I’ve been trying to get it to load in the footer but I can’t work out what to change in the core files.
Any help would be greatly appreciated.
Kind Regards,
The Decanus
Hi The Decanus,
We use wp_enqueue_style() to output that file and that script doesn’t, by design, add the ability to move where CSS is loaded. As such, you’ll need to use a plugin to changes its location or output it via an alternative means. With that said, this file really shouldn’t be deferred as it’s crucial to the layout and as a result, there could be major visual issues if it’s deferred.
Based on your post, it sounds like you’re editing core files to make these changes. Is this the case? If so, I would seriously not recommend this as any and all changes you’re making will be lost on update. Instead, I would recommend using something like Autoptimzie to make this process easier and to minify your assets at the same time.