> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaymail/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaymail/drag-and-drop-email-builder/the-elements-of-design/basic-elements/embed-a-yaymail-shortcode-into-a-button.md).

# Embed a YayMail shortcode into a button

You can embed a YayMail shortcode into a button by adding the shortcode into the URL field.

See image reference:

<figure><img src="/files/OUG9Ju0B3p2qtqmw6wdc" alt=""><figcaption></figcaption></figure>

Please note that you can only insert a shortcode which includes "url" into a button.

<figure><img src="/files/B1zIX2wReKjVCS6rk3pq" alt=""><figcaption></figcaption></figure>
