Skip to content
Type something to search...

Customizing the Subscription Form

The subscription form allows users to subscribe to your email list. To configure the subscription form, open the config.toml file in the src/config folder and find the following section:

config.toml
# Mailchimp Subscription Form located in footer
[settings.subscription]
enable = true # Enables or disables the subscription form
title = "" # Check src/i18n/en.json and src/i18n/fr.json for changing the title in different languages or directly add value here if you are not using internationalization feature
form_action = "https://gmail.us22.list-manage.com/subscribe/post?u=436cb8647d746fe81825f1efc&id=18a007239a&f_id=00cfc7e1f0"
  • enable → Enables/disables the subscription form.
  • title → Defines the title of the subscription form.
  • form_action → Specifies the action URL for the subscription form.

Getting Mailchimp Subscription Form Action URL

Currently, we are using Mailchimp for our subscription form. You can find the form action URL in the Mailchimp dashboard. Follow the steps below to get the form action URL:

  1. Create a Mailchimp Account

    This is a very easy process. If you don’t already have a Mailchimp account, sign up at mailchimp.com or log in if you have one.

  2. Create an Embedded Form

    After logging in, you will see the dashboard. From the left sidebar, click the Create button located at the top.

    mailchimp tutorial how-to image

    Then click Signup Form, then Embedded Form, and fill out the form before clicking Begin.

    mailchimp tutorial how-to image

    After you click Begin, you will see a page where you can add more fields. Now, from the top right, click the Continue button.

    mailchimp tutorial how-to image

    You will then see the following page. From the embedded form code, copy the form action value and paste it into the config.toml file under the form_action option.

    mailchimp tutorial how-to image