Hey @drauth,
Thanks for reaching out to us.
Can you please go to the “MC4WP > Others” menu in WordPress and share with us any errors listed there?
Thread Starter
Drauth
(@drauth)
— Nothing here. Which means there are no errors!
Also after setting to display Everything…
Thread Starter
Drauth
(@drauth)
I add that when trying in the form preview mode it works!
Hey @drauth,
Please check the screenshot at https://www.dropbox.com/s/x245w0ookacwnyu/Screenshot%202020-11-28%20at%2012.20.29%20PM.png?dl=0.
I see some errors but while our plugin code is listed there the errors do not seem to be coming from our plugin.
Can you please disable all caching/optimization plugins and let us know?
Thread Starter
Drauth
(@drauth)
Hi,
thanks, I did the test you mention but without results.
But, but… I did another test: I put the code [mc4wp_form id=”3005″] in a page and the subscribe form works perfectly!
So, the problem arise only when used in a widget…
Any idea?
Thanks
Simone
Plugin Contributor
Lap
(@lapzor)
Are you sure the widget you’re testing with is really our widget and not from another plugin?
If the shortcodes work I suppose you can just put the shortcode in a HTML or Text widget.
Hope that helps. If you have any questions, please let me know!
Thread Starter
Drauth
(@drauth)
Here the widget, it seems yours? http://prntscr.com/vsqm42
I obviously tried to put the shortcode in HTML or text Widget, but didn’t work.
S.
Plugin Contributor
Lap
(@lapzor)
Yes that seems to be our widget.
What happens when you put the shortcode in a text or html widget?
I’ve noticed that on some themes only the text widget takes shortcodes, while on other themes only the html widget does…
Thread Starter
Drauth
(@drauth)
Doing a test page https://www.moncadayb.com/test-mailchimp-subscrition/ I found an intersting thing: on that page the form works also in the widget (bottom). The same widget doesn’t work in all other pages…
Plugin Contributor
Lap
(@lapzor)
It’s duo to angular.
On the test page there is no angular “stuff” added to the form, but on the other page that i checked angular was taking over the form and preventing our plugin from receiving the data.
Is there some class you can add to the form so that Angular leaves it alone?
https://github.com/ibericode/mc4wp-snippets/blob/master/forms/add-class-to-form-element.php
Thread Starter
Drauth
(@drauth)
Sorry,
I am not sure to undestand.
Should I add the code you linked me in github to my function.php?
Thanks, Simone
Plugin Contributor
Lap
(@lapzor)
Not as is… but I vaguely remember there is some class you can add to a form to tell Angular to leave the form alone. If you are not sure about this you can ask your theme developer about this as I’m assuming it’s your theme that’s adding Angular to everything on your site.