I’m still in search of something like this :
https://www.wpoptimus.com/131/html-tags-minified-js-css-wp-minify/
But i did find in the FAQs the following:
You’ll need to manually update your theme to include your CSS and JS minify groups. The calls you’ll want to make for the various cases are:
<?php if (function_exists(‘w3tc_styles’)): w3tc_styles(‘include’); endif; ?>
Inserts the <head> CSS group at the location you choose. Multiple occurrences are allowed.
<?php if (function_exists(‘w3tc_scripts’)): w3tc_scripts(‘include’); endif; ?>
Inserts the <head> blocking JS group at the location you choose.
<?php if (function_exists(‘w3tc_scripts’)): w3tc_scripts(‘include-nb’); endif; ?>
Inserts the <head> non-blocking JS groups at the location you choose.
<?php if (function_exists(‘w3tc_scripts’)): w3tc_scripts(‘include-body’); endif; ?>
Inserts the <body> blocking JS group at the location you choose.
<?php if (function_exists(‘w3tc_scripts’)): w3tc_scripts(‘include-body-nb’); endif; ?>
Inserts the <body> non-blocking JS groups at the location you choose.
<?php if (function_exists(‘w3tc_scripts’)): w3tc_scripts(‘include-footer’); endif; ?>
Inserts the footer JS group at the location you choose.
<?php if (function_exists(‘w3tc_scripts’)): w3tc_scripts(‘include-footer-nb’); endif; ?>
Inserts the footer non-blocking JS group at the location you choose.
However, i could not get it to work – . maybe because i’m always calling wp_head(). I should try it without calling wp_head().
I’m hesitant to use your method as the changes would be over written when i update W3TC.
Nice site by the way ??