• Anyone have the following problems…

    1. When I add and submit js files to exclude, they are not saved after I click the SAVE button.

    2. Conflicts with Gravity Forms populating. I’d add the js files to the exclude list, but refer to item #1.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Morning Jeff;
    fixing (2) could be easy if only you were able to fix (1). the way options are displayed and saved is pretty basic wordpress functionality, so I don’t have any idea what is going wrong to be honest. could be some general malfunctioning, could be a plugin (or theme) overwriting the settings, could even be your host (using an mu-plugin).

    anyway, what you could try as a workaround is going to wp-admin/options.php which lists all options, find autoptimize_js_exclude there, add your exclusions and at the very bottom of the page (which can be very long, this lists ALL your options) press “save changes”.

    and if that doesn’t work either (and you don’t feel like toggling plugins on and off to see if the reason is there somewher), you could hook into AO’s API and tell it to exclude that way;

    add_filter('autoptimize_filter_js_exclude','jeff_excludes_js');
    function jeff_excludes_js($in) {
         return $in.", gravity.min.js, your-plugin/inc/js/another.js, js/whatever.min.js";
    }

    This would -as you might have guessed- add gravity.min.js, your-plugin/inc/js/another.js, js/whatever.min.js to the exclusion-list.

    hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Gravity Forms Conflict with Autoptimize’ is closed to new replies.