Skip to main content
Jan 15, 2016 4:43 PM UTC
Solved

Can a calendar token be changed to a button?

Were trying to use the calendar token but we'd like it to be a button, instead of straight text. Does anyone know if that's possible?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Frank_Breen2
Frank_Breen2Accepted solution
Level 8
Jan 15, 2016 5:07 PM UTC

This is what I'm doing, it my template I set the Button as follows:

<table style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0" align="center">

  <tbody>

    <tr>

      <td style="display: block; color: #ffffff; font-family: Arial; font-size: 14px; background: #0a5bae; margin: 0; padding: 12px 20px; font-weight: bold;" align="center" valign="middle" bgcolor="#0a5bae">{{my.Calendar}}</td>

    </tr>

  </tbody>

</table>

Then in the Hyperlink Text section within the token I add the following <span>:

<span style="background: #0a5bae; color: #ffffff; font-family: Arial; font-size: 14px;">Add to Calendar</span>

If the browser supports the <style> tag (i.e not Gmail) in the Head, then I add

a:link, a:visited, a:hover { text-decoration:none; color: #ffffff; font-family: Arial; font-size: 14px; }

That will stop the annoying blue line under the link (mainly in all clients except gmail).

This is a close to a button that I can get it.

7 replies

Grégoire_Miche2
Level 10
Jan 15, 2016 4:54 PM UTC

Hi Jace,

It's not an option available in Marketo. But this is something you might be doing with a little CSS. it will not work on all email clients, but at least for some...

-Greg

Translate
Adobe Employee
Jan 15, 2016 4:58 PM UTC

Hi Jace,

The token itself won't work as a link behind a button/image, but if you create the .ics file yourself and upload it to your design studio, then you can use the link to that file as the link behind your button.

John

Translate
Frank_Breen2
Frank_Breen2Accepted solution
Level 8
Jan 15, 2016 5:07 PM UTC

This is what I'm doing, it my template I set the Button as follows:

<table style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0" align="center">

  <tbody>

    <tr>

      <td style="display: block; color: #ffffff; font-family: Arial; font-size: 14px; background: #0a5bae; margin: 0; padding: 12px 20px; font-weight: bold;" align="center" valign="middle" bgcolor="#0a5bae">{{my.Calendar}}</td>

    </tr>

  </tbody>

</table>

Then in the Hyperlink Text section within the token I add the following <span>:

<span style="background: #0a5bae; color: #ffffff; font-family: Arial; font-size: 14px;">Add to Calendar</span>

If the browser supports the <style> tag (i.e not Gmail) in the Head, then I add

a:link, a:visited, a:hover { text-decoration:none; color: #ffffff; font-family: Arial; font-size: 14px; }

That will stop the annoying blue line under the link (mainly in all clients except gmail).

This is a close to a button that I can get it.

Translate
Community Advisor
Jan 15, 2016 5:45 PM UTC

This has been my latest method as well. In past jobs our preferred calendar button was not easily create-able by colors and boxes. But when we redesigned our templates we took that into consideration and switched most of our buttons to this style. A sad step backwards, visually, but a step towards easier automation.

Translate
Jan 15, 2016 5:14 PM UTC

Is this for email or LP? I'm not sure if it's possible for email, but one alternative is to build your template so that the calendar token is in a cell that has a background color. This is how I've build templates before - so that the link is still text but appears to be on a flat button that's really just a colored background

Translate
Casey_Grimes2
Level 10
Jan 15, 2016 5:39 PM UTC

What I've done in the past (and admittedly, this is rather obnoxious) is to go ahead and place the token in an email, use a preview to grab Marketo's actual hosted .ics path, and then manually create the button with that URL.

Translate
Community Advisor
Jan 15, 2016 5:43 PM UTC

I've done this as well -- then I have an entire folder in Design Studio for hosted .ics files. super obnoxious, but a fairly easy (although not fast) process.

Translate