Embedded mailchimp html rendering of drop down boxes
-
Heya,
I’ve got a wordpress, and using the html from mailchimp, embedded a form in a page. At first it seemed to work fine, but then some how, it stopped rendering properly.
My form has a drop down box for subscribers to select their country. It rendered correctly at first, but on subsequent viewings, renders a box for each individual country, rather than one dropdown box with all the countries in it.
-
Can anyone help?
There’s no way to help without seeing the Webpage with the problem.
Oops! Good call Andrew, you can see it here:
http://www.adailyromance.com/testing-signup-to-fix-mailchimp-weirdness/Are you sure that’s the right page?
Andrew, sorry about that, I’d accidentally published it privately.
Should be accessible now.
Can you also post the code that you’ve taken from Mailchimp to generate this form?
[ 303 lines of code redacted ]
So, above is how it comes out of mailchimp. Below is how it winds up when I create a page, switch to the text editor from the visual editor, and paste it.
I think it may be due to some invalid HTML on the page somewhere http://validator.w3.org/check?uri=http%3A%2F%2Fwww.adailyromance.com%2Ftesting-signup-to-fix-mailchimp-weirdness%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
The second paste is what happens after I’ve pasted it into wordpress. It is a bit different.
Sorry to pipe in, but for that many lines of code please use http://pastebin.com/ instead and just share the link.
As a bonus you’ll also get line numbers.
Jan, good call, I always forget about pastebin until its too late.
Andrew, was that the first or second paste that is busted? It is taken directly from Mailchimp, which is not to say it should validate, but it should work.
Any chance you’re hanging out on Freenode? I just joined #wordpress as thildred_wfh.
Maybe it’s not a validation problem.
Can you try adding in that perfect MailChimp code again, but before you do deactivate all plugins & switch to the default Twenty Fourteen/ Thirteen theme?
Hey, so in parallel to seeking help here I raised a mailchimp support request.
Their suggestion was to paste the html into the WordPress text editor, and never switch it back to visual editor mode.
I did that, pasting their code into the text editor, and hitting update, and the issue went away. So long as you don’t look at it in visual editor mode, the mailchimp code works as expected.
Thanks for your help Andrew.
The topic ‘Embedded mailchimp html rendering of drop down boxes’ is closed to new replies.