Site logo

Archived topic

Problem with the Mailchimp for WordPress plugin when inside a block element

3 replies · Started by George on April 5, 2021

Viewing posts 1–4 of 4

I am using the MC4WP: Mailchimp for WordPress plugin to embed a form, It works fine on pages but the submit button doesn't work when the form is called from a block element. In the attached single post URL on a staging site, you can see the optin form at the bottom. It's the same optin form that's on the homepage. The one on the homepage is embedded straight inside the page and works fine. On the single post, I am hooking it to the generate_after_main_content hook. I have also tried deactivated all plugins and only left GPP and GenerateBlocks but the issue persists. No errors in the console.

Hi there,

That's quite strange.

I tried replicating the issue on my end but I'm not getting the same error.

Here's the sandbox site with the form.
On a page, shortcode placed inside a container block:
https://dev-generate-press.pantheonsite.io/mc4wp-test/
On a single post, shortcode placed on a Block element hooked to generate_after_main_content:
https://dev-generate-press.pantheonsite.io/travel-stories/travel-story-2/

I've checked your site and it has errors:
https://share.getcloudapp.com/yAuDLBkn

There must be some scripts or settings in conflict w/ your site's structure. Perhaps try disabling all the scripts as well.

There's been an issue with a script on the page so I am closing this one since the problem is from my end.

Thanks!

No problem. Glad to be of any help. :D

This archived topic is closed to new replies.