This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to defer SiteOrigin CSS to the footer

8 years ago · Last reply by Alex S 8 years ago

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

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 9 months ago

    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.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread