Support » Plugin: AddFunc Head & Footer Code » Excellent plugin

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author joerhoney

    (@joerhoney)

    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

    I have continued working with it and it turns out I was not correct in my original assumption. Further observations point to fairly simple adjustments which can be made in Autoptimize configuration which then exclude the parts of the scripts, which it previously didn’t, when I tried it with AddFunc Head & Footer.

    Plugin Author joerhoney

    (@joerhoney)

    Are you saying AddFunc Head & Footer Code essentially “blocks” Autoptimize from excluding certain scripts? Or are you saying it is all a matter of adjusting your Autoptimize settings?

    Sorry if I was unclear. It was all a matter of adjusting Autoptimize settings.

    Plugin Author joerhoney

    (@joerhoney)

    Oh, ok great! Can you change your review rating then? An accurate rating is very important to some of us plugin authors. 🙂

    Plugin Author joerhoney

    (@joerhoney)

    Thanks for that, but can you change the stars too?

    😉

    Plugin Author joerhoney

    (@joerhoney)

    Thank you! 🙂

    FOR CLARIFICATION
    Note to others: This review originally said AddFunc Head & Footer Code didn’t work with Autoptimize and that Autoptimize wouldn’t render any scripts inserted using AddFunc Head & Footer Code. That is what I tested and found not to be the true. 😉

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Excellent plugin’ is closed to new replies.