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:
# 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:
-
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.
-
Create an Embedded Form
After logging in, you will see the dashboard. From the left sidebar, click the
Create
button located at the top.Then click
Signup Form
, thenEmbedded Form
, and fill out the form before clickingBegin
.After you click
Begin
, you will see a page where you can add more fields. Now, from the top right, click theContinue
button.You will then see the following page. From the embedded form code, copy the
form action
value and paste it into theconfig.toml
file under theform_action
option.