Collect emails from your readers directly from your site using the Subscribers feature in Ghost admin


When the subscribers feature is enabled in the settings within Ghost admin, the following new features are activated:

  • The route /subscribe/ renders subscribe.hbs, provided there is not already a page on this route
  • A new {{subscribe_form}} helper is registered to use within your theme
  • The API gets a new /subscribers/ endpoint

The subscribers view in Ghost admin allows you to see your subscriber list, add subscribers manually and import or export CSV files. Ghost does not automatically send emails to your subscribers by default, but you can integrate with your favourite email tools to get the job done (such as Mailchimp or Active Campaign).

Subscribe page template

The new page rendered at /subscribe/ uses the default template, which can be updated to suit your needs or overriden using a correctly named template in your theme. The subscribe form helper can be used across your site content with some adjustments to your theme.

Subscribe form helper

The helper {{subscribe_form}} helper wraps all of the internals of the form used for submitting emails to the subscriber list. It is a template driven helper just like navigation. This template can be overridden by including a correctly named template in the partials folder of your theme.


The {{subscribe_form}} helper accepts a number of attributes:

  • form_class
  • input_class
  • button_class
  • form_id
  • input_id
  • button_id
  • placeholder
  • autofocus

Here's some example code of how the subscribe.hbs page users the helper with all of the options:

  button_class="btn btn-blue btn-block"
  placeholder="Your email address"

The form is used in the default Casper theme at the bottom of the post.hbs template like so:

 {{!-- Email subscribe form at the bottom of the page --}}
 {{#if @labs.subscribers}}
   <section class="gh-subscribe">
     <h3 class="gh-subscribe-title">Subscribe to {{@blog.title}}</h3>
     <p>Get the latest posts delivered right to your inbox.</p>
     {{subscribe_form placeholder="Your email address"}}
     <span class="gh-subscribe-rss">or subscribe <a href="{{@blog.url}}/rss/">via RSS</a> with Feedly!</span>

Using the default template

The default template for the {{subscribe_form}} helper is shown below:

<form method="post" action="{{action}}" class="{{form_class}}">
    {{! This is required for the form to work correctly }}

    <div class="form-group{{#if error}} error{{/if}}">
        {{input_email class=input_class placeholder=placeholder value=email autofocus=autofocus}}
    <button class="{{button_class}}" type="submit">Subscribe</button>
    {{! This is used to get extra info about where this subscriber came from }}

{{#if error}}
    <p class="main-error">{{ error.message }}</p>

This form is passed a set of required attributes: action, hidden and script. Once the form is submitted, the template is provided with the {{error}}, {{success}} and {{email}} fields.

Overriding the default templates

It’s possible to override the default subscribe.hbs (in the root folder) and subscribe_form.hbs (in the /partials folder) templates by creating files in your theme with the same name. It’s useful to copy/paste the file contents to provide a starting point. Be mindful of updates to functionality when using custom templates.


You've walked through the functionality of the subscribers feature within Ghost, and discovered how the subscribe form works in your theme. Now you can enable the feature, add forms to your site, and even integrate your subscription list to external email services like Mailchimp.