Making LogoImg in default email template editable | Community
Skip to main content
Alex_Firtl
New Participant
April 22, 2019
Solved

Making LogoImg in default email template editable

  • April 22, 2019
  • 1 reply
  • 4907 views

I'm attempting to modify an existing "Email Template - Basic" template in order to make the Logo Image with white background at the top editable/deletable in the attached code from the email template.

I can "Clear Content" of this particular section, but there is still a white bar that appears above the next piece of content below it, because I can't truly delete it right now.

I would appreciate any help, thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Bryan_Epstein

So you can't move it up, down or delete it because the class="mktoModule" must fall within the mktoContainer class. You wouldn't need to duplicate the template. By bringing the "Header" module above the "Color Band" module, it should work for what you are looking to do.

You may need to make some minor tweaks to the code then but this will fix your issue.

The other minor tweaks to this code that I mentioned in my last reply to you were: Your variable for the module name is mktoName="LogoImage". The syntax for the name in Marketo template's is actually mktoname. Also, you have two notations for class (class="mktoModule" and class="main"). Combine those both into one class attribute (class="mktoModule main").

1 reply

Bryan_Epstein
New Participant
April 22, 2019

One thing to note is that you can't actually delete anything within a module when you are in an email itself. If you want to remove the logo from the module itself, you would want to create a new module with the same code and remove the notation of the LogoImg div. The issue there is that it would just essentially be a blank module.

To confirm, you are just trying to delete the logo image within the module?

Alex_Firtl
New Participant
April 22, 2019

Ultimately, I want that module to appear by default, but have the ability to be deleted from the email entirely, like any of the FreeText or Title or Button modules.

Right now I can't move it up or down or delete it -- I can only clear the content or change out the image. We have use cases for both including and excluding that logo at the top for different emails. I suppose I could just duplicate the template and remove the logo from the code, but I was just hoping I could convert the existing template.

Bryan_Epstein
Bryan_EpsteinAccepted solution
New Participant
April 22, 2019

So you can't move it up, down or delete it because the class="mktoModule" must fall within the mktoContainer class. You wouldn't need to duplicate the template. By bringing the "Header" module above the "Color Band" module, it should work for what you are looking to do.

You may need to make some minor tweaks to the code then but this will fix your issue.

The other minor tweaks to this code that I mentioned in my last reply to you were: Your variable for the module name is mktoName="LogoImage". The syntax for the name in Marketo template's is actually mktoname. Also, you have two notations for class (class="mktoModule" and class="main"). Combine those both into one class attribute (class="mktoModule main").