Re: Issue with Code in Email Template

Tom_Kerlin2
Level 8

Issue with Code in Email Template

Hi all,

I've cloned over the attached email template (Template-A-Original) and wanted to combine the following content modules (CTA and CTA Text, dealership information, separator-3, dealership links, separator - 4, Blank Space-clone-1, footer links, and Blank Space) into one editable section (excluding the Footer).

I've also attached what I've built together so far: Template-A-Dynamic, but when I preview email the footer no longer expands 100% (see screenshot below):

pastedImage_1.png

Also, when I try to approve template the following error message appears:

pastedImage_3.png

If someone can review my code and provide any suggestions I would greatly appreciate it!

Thanks,

Tom

Tom Kerlin
6 REPLIES 6
JD_Nelson
Level 10 - Community Advisor

Re: Issue with Code in Email Template

Your "outer" container is 650px wide; your footer is "table600" centered, so you're getting 25px on each side as a result. Change to 100% or 650px to match.

As for the error you're getting, it's basically saying the 9th item in your container is either not a module. I'll check the code for that in a bit.

JD_Nelson
Level 10 - Community Advisor

Re: Issue with Code in Email Template

Okay - this is a difficult way of saying this -- but in the word doc of code you sent, on page 28 of 43 there is an empty table:

<table>

<tbody>

</tbody>

</table>

That's causing your 'invalid module' call

JD_Nelson
Level 10 - Community Advisor

Re: Issue with Code in Email Template

after Marketo refreshes the code, the lines are on 484-487

Tom_Kerlin2
Level 8

Re: Issue with Code in Email Template

Thanks for taking a look JD.

I revised code and opened in the email editor, but the content modules are still not combined; was hoping someone knew of a quick workaround.

pastedImage_1.png

-Tom

Tom Kerlin
JD_Nelson
Level 10 - Community Advisor

Re: Issue with Code in Email Template

what do you mean by 'combined' - ? what are you looking to do?

JD_Nelson
Level 10 - Community Advisor

Re: Issue with Code in Email Template

if you want those sections combined into one module then there needs to be one table with 'class=mktoModule' and all of the other content (whether nested tables or not) should not have that class added. Instead use 'mktoEditable' on the components that need editing within that module (or use your variables as some have).

As it is right now, each section you listed has 'mktoModule' class which will make them independent based on current code.