Adding buttons to workflow emails

Changing the appearance of links offers many advantages. Changing a link into button can make emails appear more professional or help draw attention to a specific action customers can take. This article will outline how you can update the appearance of links in emails generated by AutomateWoo.

The methods available are: using images, using CSS classes, and using inline CSS.

The following methods will not work with the Send Email – Plain Text action.

Using images

↑ Volver al principio
  1. Create or edit a workflow that uses the Send Email action.
  2. Click the Add Media button and select the image you’d like to use as a button.
  3. Highlight the image and then click the link button from the content editor menu.
  4. Enter the link for the button and click Apply.

Using CSS classes

↑ Volver al principio

By default, AutomateWoo includes four helper classes specifically to make links into buttons in emails.

These classes are:

  • automatewoo-button: The base class for all buttons. This class will provide a starting foundation for the button based off the appearance settings of your site set in the storefront customizer. Include this class in all buttons.
  • automatewoo-button--wide: Include this class to make a button span the full width of the message.
  • automatewoo-button--small: Include this class to make a button slightly smaller than normal.
  • automatewoo-button--large: Include this class to make a button slightly larger than normal.

These classes can be used in any logical combination. For instance, including automatewoo-button, automatewoo-button--wide, and automatewoo-button--small will result in a small, wide button.

  1. Craft or edit the email’s content in a workflow that uses the Send Email action.
  2. Click on the Text tab. This will allow you to view the code of your email.
  3. Find the link that you want to make into a button. Within opening <a> tag, include class="automatewoo-button".

If the class property already exists, add automatewoo-button before the closing quote. You can include additional classes inside class="", just make sure each class is separated by a space.

Using inline CSS

↑ Volver al principio

Not satisfied with the look or feel set by the helper classes? You can use inline CSS to make adjustments however you see fit.

To accomplish this, include the base button class, automatewoo-button. Then, include the appropriate CSS selectors and properties inside style="" to make the desired changes.

Example of inline CSS properties
Example of button created using inline CSS