{"id":13422862,"date":"2020-09-18T08:29:50","date_gmt":"2020-09-18T08:29:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=13422862"},"modified":"2020-09-18T08:45:50","modified_gmt":"2020-09-18T08:45:50","slug":"what-contact-form-plugins-are-compatible-with-autoptimize","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/what-contact-form-plugins-are-compatible-with-autoptimize\/","title":{"rendered":"What Contact Form Plugins Are Compatible With Autoptimize ?"},"content":{"rendered":"<p>Hi,<br \/>\nI have Contact Form 7 installed and after installing Autoptimize stopped working.<br \/>\nI can see in Google that many people experience the same problem. <\/p>\n<p>So after spending some time in trying to fix the problem (see bellow) I am thinking of changing the contact form plugin. <\/p>\n<p>And here is my question, what contact form plugin is compatible and confirmed working together with Autoptimize plugin? Can you suggest some, I just don&#8217;t want to test again 100 plugins until I find the one compatible with Autoptimize, so please advice..<\/p>\n<p>I couldn&#8217;t fix it by excluding its js code &#8230; scripts.js<br \/>\nI also tried with snipped method as suggested on other post, but also didn&#8217;t fix the problem:<br \/>\n\/\/ Disable autoptimize on pages with the word 7753 in the URL<\/p>\n<p>add_filter(&#8216;autoptimize_filter_noptimize&#8217;,&#8217;my_ao_noptimize&#8217;,10,0);<\/p>\n<p>function my_ao_noptimize() {<\/p>\n<p>if (strpos($_SERVER[&#8216;REQUEST_URI&#8217;],7753)!==false) {<\/p>\n<p>return true;<\/p>\n<p>} else {<\/p>\n<p>return false;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n","protected":false},"template":"","class_list":["post-13422862","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13422862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13422862\/revisions"}],"predecessor-version":[{"id":13422952,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13422862\/revisions\/13422952"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13422862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}