Oké I have introduced a new css file for STC handling the treeview of categories. This is because we now can have also customized taxonomies to subscribe to. This css file you can find at wp-content\plugins\subscribe-to-category\css\stc-tax-style.css
If there anything in there that breaks Autoptimize “Optimze CSS”?
Can you prevent this css from being optimized? Does it also optimize the jsquery code in class-stc-subscribe.php if so can you prevent this from being optimized? All this to understand what and where it goes wrong
-
This reply was modified 5 years, 6 months ago by
vandestouwe.
-
This reply was modified 5 years, 6 months ago by
vandestouwe.
I have never optimized JS because it has always caused issues, so I can’t speak to that.
I just tried excluding “wp-content/plugins/subscribe-to-category/css/stc-tax-style.css” from my Autoptimize CSS Minification, but it still had the same error of bricking all CSS on my site.
What happens if you exclude wp-content/plugins/subscribe-to-category/ and/ or untick “also aggregate inline CSS”?
What happens if you exclude wp-content/plugins/subscribe-to-category/ and/ or untick “also aggregate inline CSS”?
That makes it work normally!
Can you also try excluding the one or the other seperatly?
-
This reply was modified 5 years, 6 months ago by
vandestouwe.
I checked the wp-content\plugins\subscribe-to-category\css\stc-tax-style.css for errors and I found an error.
On line 37 just after the closing comment a ‘ character slipped in. This did not caused a problem when you did not optimized the css file. But after optimizing the complete css structure was brokenbecause of this error. I found the problem using wp-optimze and with the option ” Inschakelen CSS bestanden samenvoegen ” it pointed me in the right direction. I have tested the corrected css file with optimization on and it works fine now.
A new release will be made available today
-
This reply was modified 5 years, 6 months ago by
vandestouwe.
-
This reply was modified 5 years, 6 months ago by
vandestouwe.
-
This reply was modified 5 years, 6 months ago by
vandestouwe.