Can a calendar token be changed to a button? | Community
Skip to main content
January 15, 2016
Solved

Can a calendar token be changed to a button?

  • January 15, 2016
  • 5 replies
  • 5357 views

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.
Best answer by Frank_Breen2

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.

5 replies

Casey_Grimes2
New Participant
January 15, 2016

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.

Community Manager
January 15, 2016

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.

January 15, 2016

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

Frank_Breen2
Frank_Breen2Accepted solution
New Participant
January 15, 2016

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.

Community Manager
January 15, 2016

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.

Employee
January 15, 2016

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

Grégoire_Miche2
New Participant
January 15, 2016

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