How to Add mailto: to an Email Address in a Button

Here's how you can add mailto: to an email address in a button using Stackable's Dynamic Fields.


  1. Select Dynamic Fields next to the Link / URL field in the Button block

  1. Select the email field from the Dynamic Fields

  1. When you've applied the email, switch to the Code Editor

  1. Look for a string that looks like:

!#stk_dynamic

That is our tag on where the dynamic content will be placed.


  1. Just add your mailto: to this string.

If you're editing a button, you should end up with something like this:

href="mailto:!#stk_dynamic/current-page/email!#"


Further reading:

How to Use Stackable Custom Fields