Clarification on the Use of autoptimize_helper.php
-
Hey Frank, hope you’re well,
I was wondering is you might clarify the most proper use of
autoptimize_helper.php
.What we have been doing is simply inserting the filter(s) we need in a theme’s
functions.php
and calling it a day. The instructions, however, seem to imply that this is not the best way of making use of the Helper/its filters.I’ll explain:
How can I use/ activate autoptimize_helper.php_example?
Copy it to /wp-content/plugins/autoptimize_helper.php and activate it in WordPress’ plugin page. After that you can simple remove the one of the comment-sequences (double-slash) to activate one (or more) of the functions in there.
1.) I don’t quite understand what is meant by “Copy it to /wp-content/plugins/autoptimize_helper.php and activate it in WordPress’ plugin page”. The helper is already there in the plugin’s files, so from where and to where is it supposed to be “copied”?
2.) As the instructions read, there is apparently supposed to be a second, separate AO plugin available on the Plugins page in WP Admin so long as one has “copied”
autoptimize_helper.php
to/wp-content/plugins/autoptimize_helper.php
… Is this correct or am I reading this incorrectly?I have a couple more questions but need to know the answers to the above to know which ones to ask.
Anyway, it’s not infrequently that we get the ‘White Screen of Death’ when attempting to add AO’s filters via a theme’s
functions.php
, especially when attempting to make use of more complicated filters (attempting to return different inlined CSS for different URLs as a primary example). So, I thought I’d try and get some direction so that we’re using the Helper and its filters in the most technically appropriate manner.Best, and thanks as always,
AJ
- The topic ‘Clarification on the Use of autoptimize_helper.php’ is closed to new replies.