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.
- Select Dynamic Fields next to the Link / URL field in the Button block
- Select the email field from the Dynamic Fields
- When you've applied the email, switch to the Code Editor
- Look for a string that looks like:
!#stk_dynamic
That is our tag on where the dynamic content will be placed.
- 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: