Skip to content
New: Customize your theme with an AI assistant. Read the guide

Contact Forms & Integrations

Files: src/content/contact/<language>/-index.md, src/config/config.toml · Skill level: Beginner

The contact page entry is src/content/contact/<language>/-index.md. It holds the office cards and the form fields, rendered by ContactPageLayout.astro and ContactForm.astro. The contact section on the first homepage uses the same form. Its badge and title are in src/content/sections/<language>/contact-section.md.

In the Tina edition, this is Contact page at /admin/, and the provider settings are in Site settings > Settings. In the Sanity edition, the fields are in Main pages > Contact page, under Sections on this page > Form, for each language in the Studio. The offices are under Contact Section on the same page, and the provider settings are in Site settings > Settings.

Provider Configuration

[settings]
contactFormAction = "" # such as https://formsubmit.co/your_email@example.com
contactFormProvider = "formsubmit.co"

contactFormAction ships empty. Until you set it, the contact form shows a message and sends nothing.

The provider values the form accepts are:

  • formsubmit.co
  • formspree
  • netlify

For Netlify, the component adds data-netlify="true" and submits to contactFormAction. Formsubmit and Formspree submissions are handled by the theme’s client script.

Form Fields

The form.inputs list supports text and email fields, textareas, select or searchable-select dropdowns, grouped radio fields, checkboxes, default values, required fields, and half-width fields. name is the label you receive the value under.

form:
emailSubject: "New form submission from veltro website"
inputs:
- label: "Email Address"
placeholder: "jane@example.com"
name: "Email Address"
type: "email"
required: true
halfWidth: true
- label: "How can we help you"
tag: "textarea"
rows: "4"
name: "Message"
required: true

Set your action and complete a real submission test before launch.

Offices And Contact Details

The contactSection list in the same file holds the office cards, each with a title, a mapLink, and info rows. The phone, email, and address shown in the footer and the side panel are in [settings.contactInfo] in config.toml.

Newsletter

Veltro has no newsletter form. See Subscription.

Type something to search...