-
Notifications
You must be signed in to change notification settings - Fork 0
Contact form
This theme uses a FormSpree form for contact form. To use a FormSpree form, you will need an account with FormSpree. A free account allows fifty form submissions per month. If you think you will receive more responses, you will need to buy one of the paid packages.
Once you have the project and form set up in FormSpree, copy the form ID. This is the alpha-numeric string at the end of the form URL:
https://formspree.io/f/{form_id}
I have made a contact form available as a shortcode, called, contact
. You can call the form anywhere, provided you have it set up. At least the form ID is mandatory to enable the contact form.
In your config.toml
, add the following:
[params.contactForm]
id = 'mynewformid'
The form in this theme has three fields:
- Name
- Email address
- Message
You can change the placeholder text for these fields. Use the following keys to change the text:
[params.contactForm]
id = "mynewformid"
namePlaceholder = "Your name"
emailPlaceHolder = "Your email address"
messagePlaceholder = "Your message"