---
title: "Open it from a link or button – Modal Kit Docs"
description: "Every modal has an address. Links open it straight away, and still work with JavaScript turned off."
language: "en-US"
canonical_url: "https://modalkitwp.com/docs/open-from-a-link/"
source_url: "https://modalkitwp.com/docs/open-from-a-link/"
content_type: "text/markdown"
---

Get started

[Install and set up](https://modalkitwp.com/docs/install/)

[Build your first modal](https://modalkitwp.com/docs/first-modal/)

[Defaults for new modals](https://modalkitwp.com/docs/defaults/)

[Who can do what](https://modalkitwp.com/docs/who-can-do-what/)

Opening and showing

[Choose when it opens](https://modalkitwp.com/docs/triggers/)

[Open it from a link or button](https://modalkitwp.com/docs/open-from-a-link/)

[Decide where and how often](https://modalkitwp.com/docs/display-rules/)

[Limits across all modals](https://modalkitwp.com/docs/limits/)

[Test what visitors see](https://modalkitwp.com/docs/test-what-visitors-see/)

Look and feel

[Styles](https://modalkitwp.com/docs/styles/)

[Accessibility](https://modalkitwp.com/docs/accessibility/)

[Video](https://modalkitwp.com/docs/video/)

[Move modals between sites](https://modalkitwp.com/docs/move-modals-between-sites/)

Pro and forms

[Activate Pro](https://modalkitwp.com/docs/activate-pro/)

[Add a form](https://modalkitwp.com/docs/forms/)

[Connect your email service](https://modalkitwp.com/docs/email-services/)

[Copy sign-ups to a webhook, and test](https://modalkitwp.com/docs/webhooks/)

[Keep bots out](https://modalkitwp.com/docs/bot-check/)

[Check deliveries](https://modalkitwp.com/docs/submissions/)

More in Pro

[Multi-step modals](https://modalkitwp.com/docs/multi-step/)

[Games and prizes](https://modalkitwp.com/docs/games/)

[WooCommerce](https://modalkitwp.com/docs/woocommerce/)

[Results and analytics](https://modalkitwp.com/docs/results/)

[A/B testing](https://modalkitwp.com/docs/ab-testing/)

[Audience rules](https://modalkitwp.com/docs/audience-rules/)

[Age gate, teasers and more blocks](https://modalkitwp.com/docs/more-pro-blocks/)

Speed and hosting

[Page caches and speed plugins](https://modalkitwp.com/docs/caching/)

[Static exports](https://modalkitwp.com/docs/static-exports/)

[Multisite networks](https://modalkitwp.com/docs/multisite/)

[Sites behind a proxy or CDN](https://modalkitwp.com/docs/proxies-and-cdns/)

Help

[Updates](https://modalkitwp.com/docs/updates/)

[A modal doesn’t show](https://modalkitwp.com/docs/troubleshooting/)

Contents ▾

Get started

[Install and set up](https://modalkitwp.com/docs/install/)

[Build your first modal](https://modalkitwp.com/docs/first-modal/)

[Defaults for new modals](https://modalkitwp.com/docs/defaults/)

[Who can do what](https://modalkitwp.com/docs/who-can-do-what/)

Opening and showing

[Choose when it opens](https://modalkitwp.com/docs/triggers/)

[Open it from a link or button](https://modalkitwp.com/docs/open-from-a-link/)

[Decide where and how often](https://modalkitwp.com/docs/display-rules/)

[Limits across all modals](https://modalkitwp.com/docs/limits/)

[Test what visitors see](https://modalkitwp.com/docs/test-what-visitors-see/)

Look and feel

[Styles](https://modalkitwp.com/docs/styles/)

[Accessibility](https://modalkitwp.com/docs/accessibility/)

[Video](https://modalkitwp.com/docs/video/)

[Move modals between sites](https://modalkitwp.com/docs/move-modals-between-sites/)

Pro and forms

[Activate Pro](https://modalkitwp.com/docs/activate-pro/)

[Add a form](https://modalkitwp.com/docs/forms/)

[Connect your email service](https://modalkitwp.com/docs/email-services/)

[Copy sign-ups to a webhook, and test](https://modalkitwp.com/docs/webhooks/)

[Keep bots out](https://modalkitwp.com/docs/bot-check/)

[Check deliveries](https://modalkitwp.com/docs/submissions/)

More in Pro

[Multi-step modals](https://modalkitwp.com/docs/multi-step/)

[Games and prizes](https://modalkitwp.com/docs/games/)

[WooCommerce](https://modalkitwp.com/docs/woocommerce/)

[Results and analytics](https://modalkitwp.com/docs/results/)

[A/B testing](https://modalkitwp.com/docs/ab-testing/)

[Audience rules](https://modalkitwp.com/docs/audience-rules/)

[Age gate, teasers and more blocks](https://modalkitwp.com/docs/more-pro-blocks/)

Speed and hosting

[Page caches and speed plugins](https://modalkitwp.com/docs/caching/)

[Static exports](https://modalkitwp.com/docs/static-exports/)

[Multisite networks](https://modalkitwp.com/docs/multisite/)

[Sites behind a proxy or CDN](https://modalkitwp.com/docs/proxies-and-cdns/)

Help

[Updates](https://modalkitwp.com/docs/updates/)

[A modal doesn’t show](https://modalkitwp.com/docs/troubleshooting/)

[Docs](https://modalkitwp.com/docs/) / Opening and showing

# Open it from a link or button

Every modal has an address. Links open it straight away, and still work with JavaScript turned off.

![Modal Kit → Settings → General → Links: Modal links with #slug anchors and ?modal=slug query ticked, and the Link prefix set to modal-.](https://modalkitwp.com/content/modules/modalkitwp-blocks/assets/docs/open-from-a-link.webp)




		The two link styles, and the prefix every modal address starts with.

-
1

Link any text, button or image to `#modal-your-slug`, or add `?modal=your-slug` to a page address (handy in emails).

-

2

To use only one of the two, or change the `modal-` part, go to **Modal Kit → Settings → General** and set **Modal links** and **Link prefix**.

-

3

For buttons inside a modal, select the button and use its **Action** panel. **When clicked** offers **Open link**, **Close modal** and **Copy text**; Pro adds **Submit form**, **Next / previous step**, **Go to step**, **Add to cart** and **Apply coupon / go to checkout**.

## Still stuck? We’ll help.

[Get support](https://modalkitwp.com/support/)

[Read the FAQ](https://modalkitwp.com/faq/)
