• Resolved mrlambdas

    (@mrlambdas)


    I’m having an issue with a site I have been maintaining for an internship. There are two MailChimp forms being added to all post pages. I have grepped all of the PHP files in our theme and it has not been added through there. I have also checked all of the plugins to make sure it had not been added through a plugin. I was able to remove one of them with CSS using

    #mc_embed_signup_scroll{
        display: none;
    }

    which doesn’t remove it from the code but it at least hides it. The other one is simply

    <h3><b>Sign Up For Our Newsletter</b></h3>
    <p><label for="mc4wp_email"><b>Email address: </b></label>
    <input id="mc4wp_email" name="EMAIL" required="" type="email" placeholder="Your email address">
    <input type="submit" value="Sign up">
    </p>

    because this has no class or id attribute I cannot hide them without affecting all paragraphs in the posts. Can anyone provide any insight where this code might be coming from if not from a plugin or our theme files?
    A link to one of our articles is http://www.newyorkminutemag.com/savvy-student-savings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    resetting the plugins folder by FTP. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).

    Thread Starter mrlambdas

    (@mrlambdas)

    I deactivated ALL plugins, did not fix it. I reset the plugins folder over FTP that didn’t work either. We had a folder mu-plugins (was empty), renamed it mu-plugins-old, problem still persists. I also installed the Twenty Sixteen theme and switched to that, form still present.

    Thread Starter mrlambdas

    (@mrlambdas)

    Well, I found one of the two. Someone had placed one in an ad widget for our theme and was able to remove that. The other wasn’t anywhere in the code, I’m not sure how it got there. I was able to hide it using jquery’s contains methods however.

    <script>
    $(document).ready(function(){
        $("h3:contains(Sign Up For Our Newsletter)").css("display", "none");
        $("label:contains(Email address:)").css("display", "none");
        $("input[id*='mc4wp_email']").css("display", "none");
        $("input[value*='Sign up']").css("display", "none");
    });
    </script>

    Not the best solution having to add another script to the page, but it works.

    Moderator t-p

    (@t-p)

    glad you got it sorted 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Phantom MailChimp Forms’ is closed to new replies.