Skip to content
Public Ticket #11936

How to remove unused CSS code from theme stylesheets

Conversation thread

Penci Design replied

Staff Reply

Hi,

you should not remove css code from theme style theme. It can make most feature not work fine.

I recommend you use only  Autoptimize plugin to minify css on your site.

Best Regards,

PenciDesign

radiokptv started the conversation

Conversation Start

Hi as i read some article on optimising webpages, i have read about cleaning css files. Please do a test for my http://landing.kptv.ro,  on https://purifycss.online/ website and see those results. There say that aprox.40% of the css is unsed, what can i do and if this could improve the website functioning.

Regards, Viorel

p.s.- i have find an article about this task here https://wpspeedmatters.com/critical-path-css-in-wordpress/ and use the https://pegasaas.com/critical-path-css-generator/ toidentify some unused css code an put it in the Autoptimize inline menu and now you can check what is as css task mentioned above.

Want to join this conversation or access attachments? Sign in first.