I just tested this and it isn’t holding true. AddFunc Head & Footer Code uses the standard wp_head function to output your <head>
code and Autoptimize catches everything wp_head outputs. So in the tests that I did, any CSS or JS code added with AddFunc Head & Footer Code was removed AND ADDED back into the .css/.js outputs generated by Autoptimize just as they should be. That’s where you should be looking for it. If that isn’t working for you, make sure:
- AddFunc Head & Footer Code is up-to-date (there was an error with it in an older version)
- You’ve included the proper wrapper tag for your stylesheet/script (e.g.
<style type="text/css" rel="stylesheet"> .your-css-code { } </style>
). Autoptimize probably won’t recognize it as a stylesheet/script without this (as with any theme or plugin)
- The path to your CSS/JS file resolves correctly or you otherwise haven’t entered it incorrectly in some other way (important, just as with any theme or plugin)
- Your Autoptimize options are configured in such a way as to get the desired results