• Resolved angeo981

    (@angeo981)


    Hi,
    I have Contact Form 7 installed and after installing Autoptimize stopped working.
    I can see in Google that many people experience the same problem.

    So after spending some time in trying to fix the problem (see bellow) I am thinking of changing the contact form plugin.

    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’t want to test again 100 plugins until I find the one compatible with Autoptimize, so please advice..

    I couldn’t fix it by excluding its js code … scripts.js
    I also tried with snipped method as suggested on other post, but also didn’t fix the problem:
    // Disable autoptimize on pages with the word 7753 in the URL

    add_filter(‘autoptimize_filter_noptimize’,’my_ao_noptimize’,10,0);

    function my_ao_noptimize() {

    if (strpos($_SERVER[‘REQUEST_URI’],7753)!==false) {

    return true;

    } else {

    return false;

    }

    }

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    try this snippet instead maybe;

    add_filter(‘autoptimize_filter_noptimize’,’my_ao_noptimize’,10,0);
    function my_ao_noptimize($flag) {
      if (strpos($_SERVER[‘REQUEST_URI’],'contact-us')!==false) {
        return true;
      } else {
        return $flag;
      }
    }
    Thread Starter angeo981

    (@angeo981)

    Hi,
    I found solution that worked for me, bellow is the original post for those who experience the same problem :

    “Another method is to add the code below anywhere inside your post content. It needs to be added in the text tab and not in the visual tab of the content editor, as shown in the image below. The credit for this method goes to the original plugin developer, Frank Goossens, who has written it on his blog here.”

    <!– <xsl:stylesheet –>

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    happy you found a solution angeo981 ??

    have a nice day!
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What Contact Form Plugins Are Compatible With Autoptimize ?’ is closed to new replies.