SOLVED

Can you add a snippet to a template?

Go to solution
Anonymous
Not applicable

Can you add a snippet to a template?

Do I have this right? Is there no way to add a snippet to an email (or landing page) template?

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Josh_Hill13
Level 10 - Champion Alumni

Re: Can you add a snippet to a template?

Not that I'm aware of. You would treat the snippet as the "Template" for the intended section of the page or email, like a footer.

View solution in original post

11 REPLIES 11
Josh_Hill13
Level 10 - Champion Alumni

Re: Can you add a snippet to a template?

Not that I'm aware of. You would treat the snippet as the "Template" for the intended section of the page or email, like a footer.

View solution in original post

Dan_Stevens_
Level 10 - Champion Alumni

Re: Can you add a snippet to a template?

We create specific elements within our guided LP template to accept snippets at page creation:

pastedImage_0.png

When double-clicking either highlighted area, the "insert snippet" window will appear:

pastedImage_2.png

And your snippet will be added to the appropriate region of the page:

pastedImage_1.png

Anonymous
Not applicable

Re: Can you add a snippet to a template?

Hi Dan - That seems like a good solution. Thank you.

Patrick_Cava2
Level 2

Re: Can you add a snippet to a template?

Hi Dan,

For email templates, I see that you can define a default snippet (e.g. <div class="mktoSnippet" id="unsubscribeFooter" mktoName="Unsubscribe Footer" mktoDefaultSnippetId="12"></div> ). However, this doesn't seem to work on landing page templates. Have you been able to use mktoDefaultSnippetID on your landing pages templates?

Dan_Stevens_
Level 10 - Champion Alumni

Re: Can you add a snippet to a template?

This works in guided LPs as well:

<div class="mktoSnippet" id="footerInfo" mktoName="Footer Snippet">ADD FOOTER SNIPPET</div>

Patrick_Cava2
Level 2

Re: Can you add a snippet to a template?

That part worked, but it then creates a snippet option in the template. When I try to add a default snippet value (mktoDefaultSnippetID), it doesn't work on landing pages. Perhaps the default value only works in email?

Dan_Stevens_
Level 10 - Champion Alumni

Re: Can you add a snippet to a template?

See my post above.  When you double-click on the snippet element on the right, the insert snippet window should pop-up - where you then select the appropriate snippet.

Yun_Bai1
Level 4

Re: Can you add a snippet to a template?

Thank you Dan.

This is really helpful. I just successfully created the snippet footer on a LP template.

Best,

Becky

Grégoire_Miche2
Level 10

Re: Can you add a snippet to a template?

Hi Denise,

In emails, any MktoText or mktoEditable (the free text elements in the template) can also be replaced by a snippet:

pastedImage_1.png

-Greg