Is there an embeddable signup form?

I’d like to embed the signup form for a ghost site on other sites - e.g. other ghost or static webpages. I can design the form, that’s not a problem, but I don’t know where to submit the form. Is there an API-based workaround (with CORS)?

1 Like

We really need this

Yes, please give us this feature.

You can embed portal JS forms on any domain
(edit data-ghost attribute value to include your ghost install location)

<script defer src="https://unpkg.com/@tryghost/portal@~0.15.0/umd/portal.min.js" data-ghost="https://yourghostdomain.com"></script>

Portal will then work the same as on your local Ghost site, and you can built HTML forms that post to Ghost in the same way you can in themes.

We plan to create more paths for this in future - but there aren’t many people experimenting with it yet, so it requires some willingness to do some tinkering/exploration

I would like to swap the embedded form of another service with my Ghost installation and am wondering if any of these options are possible (to avoid adding JavaScript interactions on my page):

  • hard-coding the form action so that it redirects to the portal and sends the magic link after arriving at Ghost
  • setting the email via the portal URL https://yourghostdomain.com/#/portal/signup?email=someone@example.com
  • setting a label via the portal URL, like https://yourghostdomain.com/#/portal/signup?label=alfa