Home>Support>Remove unused CSS

Remove unused CSS

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 heavily use the SiteOrigin custom CSS editor. Over the years I’ve added a few hundred lines of code. Many of these styles are now outdated and no longer used. Is there a way to easily compare this code against my overall site and find unused styles?

I’m aware of chrome dev tools coverage feature, but those core CSS files have additional styles from various plugins that I can’t remove easily. Can I run an audit ONLY against the code contained in the SiteOrigin CSS editor?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Andrew

    You could use the filter field in coverage to only assess the ‘so-css’ style sheet.

    https://imgur.com/QosubZM

    I’m not sure how you’d do that site-wide though. Unfortunately, I haven’t looked into a challenge like this before.

  2. 5 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    By filter, I mean in the coverage drawer there is a search field. Hopefully, this helps a little.

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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More