Members and forms

Add a newsletter signup form

A signup form asks for an email address. Ghost sends the reader a confirmation email, and the reader becomes a free member of your site after clicking the link in it. Members get your newsletter. Some people call this an email capture or opt-in form.

Before you start

  • In Ghost Admin, under Settings > Membership > Access, Who should be able to subscribe to your site? is set to Public. With Invite-only or Nobody, the form cannot add new members.

Add a ready signup section

  1. Open your project in Fantasma.
  2. Add a section where you want the form, such as on the Homepage template, as Add a section to a page shows. The empty section shows a row of cards.
  3. Click the All patterns card. The pattern picker opens, with categories on its left.
  4. Select the Newsletter category and click the pattern you want, such as Centered CTA. The section appears with a heading, a line of text, and a form with an email field and a Subscribe button.

Every pattern in the Newsletter category has this form, such as Background Image, Split with Image and Lead Capture.

Add a form to a section you already have

  1. Open the block picker inside the section, as Add blocks to a section shows.
  2. Under Forms, click Newsletter form. An email field with a Subscribe button inside it appears.

Form in the same group adds a plain form, with an email field and a separate Subscribe button under it.

Choose what the form does

In the Sections list in the left sidebar, click the arrow next to the section, then click its Form row. The Form settings open in the right sidebar. Its General group starts with these two settings.

The Form of the Newsletter CTA section selected on the home page, with Send to set to Subscribe and the default success message in the right sidebar
Setting What it does
Send to Subscribe (the default) and Sign up both add a new member and work the same way; pick the one whose email wording fits your site. Ghost's email to the reader says "Confirm your subscription" for Subscribe and "Complete your sign up" for Sign up. Sign in sends a sign-in link to people who are already members. For an address that is not a member, Ghost sends nothing, and the form still shows its success message. Custom URL sends the form to a service of your own, as Add a contact form shows.
Success message The line that appears under the form after Ghost accepts the email. The default is "Please check your inbox and click the confirmation link."

When Ghost refuses the email, its reason appears under the form in place of the success message. When a reader who is already a member signs up again, Ghost sends them a sign-in link.

A new member gets the newsletters that have Subscribe new members on signup turned on in Ghost, unless the form offers a choice, as Let readers choose their newsletters shows.

Every form sent to Ghost needs an email field. Its Required switch stays on, and pointing at it says "Ghost needs the email to sign people up". A form sent to Ghost keeps only the email, the name, labels and newsletter choices. Other fields, such as a message box, are not saved anywhere. For messages, use a contact form.

Ask for the reader's name

  1. In the Sections list, point at the Form row and click the + at its right end. The block picker opens with the form fields.
  2. Click Input. A new field appears at the end of the form.
  3. In the field's settings, under Type, select Name. Ghost saves what the reader types as the member's name.
  4. Optional. In the Sections list, drag the new field's row before the email field's row.

The form sends without a name unless you turn on the field's Required switch.

Label the members who sign up here

A label in Ghost tells you where a member came from, such as homepage or podcast.

  1. In the Sections list, click the + on the Form row.
  2. Click Hidden. A small chip that reads "Label: website" appears in the form on the canvas. Visitors never see it.
  3. In Value, replace website with the label you want, such as homepage. If you leave it, every member who signs up here gets the label website.

Ghost adds the label to everyone who signs up through this form. You find it on the member's page in Ghost Admin, and you can filter members by it.

Add a box readers must tick

  1. In the Sections list, click the + on the Form row.
  2. Click Checkbox. A box with the text "I agree to receive emails." appears. Its Required switch is on, so the form sends only once it is ticked.
  3. On the canvas, click the text next to the box and type your own, such as "I agree to the privacy policy."

A required box only has to be ticked. Ghost does not save the tick, and the box does not sign the reader up to a newsletter. To let readers pick newsletters, see Let readers choose their newsletters.

Test the form

The form does not send from the canvas. It works on your Ghost site once the theme is there, as Publish your theme to Ghost and Download your theme and upload it in Ghost show. Then open your site in a private browser window, and sign up with an address you can read. You get Ghost's email, and after you click the link, the address shows under Members in Ghost Admin.

Was this article helpful?