Home Forums Any Mobile Theme Switcher Minification breaks plugin Reply To: Minification breaks plugin



Ok, thanks, I’ve since learned that it is impossible to fully static minify a WordPress theme css file, due to the necessity of the header comment stating the name of the theme, and the fact that full minification deletes all comments. I did discover that WordPress theme css file (usually style.css) only needs one comment at the beginning and the rest can by minified. If anyone lands here looking for information, the only comment that’s necessary would look like this, located at exact beginning of the css file:

/* Theme Name: this-is-the-theme-name */

I hope that helps someone looking for info.