Raw form code from activecampaign wrecks the contact page

Hi Guys,

I’ve been using X theme for a while and on several websites. Recently I got an email from a customer who said that they see, and i quote “all sorts of wierd code on your contact page”.

Apparently since an update was done my forms do not work properly anymore. You can check it out here:

Please let me know what i need to do to make it work again.

Hi @jebentzelf,
Thanks for reaching out.

There might be a few different reasons for this issue, I would suggest you troubleshoot a few common issues:

  1. Testing for Plugin Conflict
  2. CSS/JS Customization
  3. Disabling Cache

If you find any issues that are related to any 3rd Party plugin(s), I would suggest you contact the author in that case.
Please remember, we don’t offer any support or investigation on 3rd Party plugins or issue(s) related to it.

If none of these helps, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Admin URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi Tristup,

Nothing helps. And except for updating the theme a while back nothing has changed?

Hi @jebentzelf,

Thanks for reaching out.

The reason why it is happening because of incompatible content. We’ve been trying to find a solution but it is something strange on your install but I found some workaround that would require a little CCS and JS.

I went ahead and add this code to X > Theme Options > JS

jQuery(".entry-content")
    .contents()
    .filter(function() {
        // get only the text nodes
        return this.nodeType === 3;
    })
    .wrap( "<p></p>" );

Add this code to X > Theme Options > CSS

#cs-content ~ p, .entry-content > p, #cs-content ~ br {
  display: none;
}

I also tried to test your contact form and your contact form is just working fine.

Please note that custom development is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third-party developer.

Hope that helps.

Thank you.

ok. Very happy it works again!

Looking forward to a sustainable solution within the theme.

Thanks for the help Cramaton!

Hi @jebentzelf,

You’re welcome and it’s our pleasure to help you. If you have any other concerns, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.