Skip to content

Contact form

Ram Iyer edited this page Dec 30, 2020 · 1 revision

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}

The shortcode

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'

Field placeholders

The form in this theme has three fields:

  1. Name
  2. Email address
  3. 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"
Clone this wiki locally