New version 2.5.3 not merging CSS
-
Hi Raul, I just tried the new version, it did not merge the css files.
All my settings are the same.
Reverted to previous version.
-
Are you checking the site logged out?
Should be workingyes, logged out.
When you say it’s not merging…
Do the css files that are supposed to be merged, still show separately linked in the header?
Are there any css files created, visible on the status page on FVM?
Can you post a screenshot of your settings or tell me the exact options you have enabled/disabled on FVM?
Do you have any other plugins that are changing the position, minifying or changing the css files?
—
On v2.5.3 we now make use of the more generic and more compatible
style_loader_taghook, while before I was using thewp_print_stylesandwp_print_footer_scriptshooks (which causes issues with some plugins that remove css files on a per page case).This requires at least WordPress version 4.5.
Which wordpress version are you using?Also in regard of your theme, are you using a customized theme or a commercial/free theme?
You need to have the default
wp_head();andwp_footer();functions on your theme header and footer respectively (it’s the default on most commercial and free themes, so it should be there unless you have removed it).I would love to help, but I am testing this on multiple wordpress sites with different themes, and I see it’s merging css properly.
I just added a few more checks to the css merging code, so please try 2.5.4 and see if it works. If it doesn’t, I’ll need the information I asked for on my post above.
Thanks Raul for your good efforts.
I have had similar problems with the versions over the last month or so, when you did lots of updates. Even the one I am using now, V2.5.1, works funny in that if I select option “Inline all CSS” it does not inline but outputs all the file links as normal, unmerged too.Let me do some deeper investigation following your suggestions above, and try newer version over the weekend, and I will do full report here.
Thanks.
Hello, can you try to update to 2.5.5 and see if it works?
Works perfect on my settings, thanks for that Raul!
The problem still presents when trying to Inline all CSS – which I don’t need, but maybe someone else does.
Here are my answers to your questions, please don’t hesitate to contact me again for further testing if you wish.
As my setup works fine, I answer these in terms of the Inline CSS issue:
Do the css files that are supposed to be merged, still show separately linked in the header?
YES, but Inline css code does not.Are there any css files created, visible on the status page on FVM?
Not when using Inline CSS. It says “There are no merged CSS files listed here, because you are inlining all CSS directly.”Can you post a screenshot of your settings or tell me the exact options you have enabled/disabled on FVM?
See my Settings below – when trying Inline all CSS, I only changed that setting and all others left the same.Do you have any other plugins that are changing the position, minifying or changing the css files?
NO. Only custom functions to conditionally dequeue/deregister some plugin css files.Which wordpress version are you using?
5.0.3Also in regard of your theme, are you using a customized theme or a commercial/free theme?
GeneratePress—————————————————–
== Settings ==
Admin Bar Purge
Preserve Cache Files
Force HTTPS urls (recommended if you have SSL)
Strip HTML comments
Inline Google Fonts CSS
Merge or Inline Font Awesome CSS
Cache /home/user/public_html/wp-content/cache
Path https://domain.com/wp-content/cache== Pro ==
Ignore List
Ignore the following CSS and JS paths below:
/wp-content/themes/generatepress/style.min.css
/wp-content/plugins/tablepress-datatables-buttons/js/
/wp-content/plugins/tablepress/js/== Developers ==
Async CSS with LoadCSS
—————————————————–
Ok, then that explains it.
Once you enable the “Async CSS with LoadCSS”, all inlining is skipped.
That’s because the Developer settings, take precedence over the normal settings.I’ll update the label on that option in the next version, so it’s more understandable.
Oh crap! I forgot about that. All good…
Hi Raul, you fixed that CSS merging so strong, that it is also processing the CSS on wp-login.php page!
You have an option to exclude login page on JS Defer, you may want to do similar for CSS. I used Plugin Logic (nice plugin) to conditionally disable FVM on the login page.
The topic ‘New version 2.5.3 not merging CSS’ is closed to new replies.