Strata

Contact form

Collect structured customer enquiries through Shopify's contact form.

Contact form gives visitors a direct way to send a message. Use it with clear response expectations and only request information the store needs to answer the enquiry.

Contact page with a black-and-white portrait on the left and, on the right, the heading How can we help?, a short note, and a form with Name, Email, Phone number, Subject, and Message fields.

Contact form on desktop with Image position: Left.

Add Contact form

In Shopify's theme editor, add Contact form to a compatible template or open an existing section. It is not available in header, footer, or overlay groups.

Content

Contact form Content settings in the Theme Editor: Subheading, Heading, Use as page heading (H1), Content, Additional heading, Additional text, Button label.

The Content group in the Theme Editor. The values shown are examples, not defaults.

SettingWhat it controlsDefault
SubheadingOptional short label above the form heading.No default.
HeadingMain heading for the enquiry form.Contact us.
Use as page heading (H1)Makes this Heading the main title of the page. Turn it on in one section only.Off
ContentRich text explaining how to contact the store and when to expect a reply.Share how customers can contact you and when they can expect a reply.
Additional headingOptional heading for supporting contact information.No default.
Additional textOptional rich text shown below the main introduction.No default.
Button labelSubmit button text.Send message.

Use the details fields for safe public information such as expected response time or service hours. Do not put private support instructions or credentials in this section.

Media

Contact form Media settings in the Theme Editor: Image.

The Media group in the Theme Editor.

SettingWhat it controlsOptions or default
ImageOptional image beside the form.No default.

When Image is blank, the section shows a neutral illustration in the selected Left or Right media position. Use it while arranging the page, then upload the intended image or choose whether the media treatment belongs in the final design. Add alt text to a meaningful source image and make decorative imagery non-essential to the enquiry.

Layout

Contact form Layout settings in the Theme Editor: Image position, Form width.

The Layout group in the Theme Editor.

SettingWhat it controlsOptions or default
Image positionPlaces the image to the Left or Right of the form layout.Left or Right. Default: Left.
Form widthSets the form's preferred content width within the available space.Small, Medium, or Large. Default: Small.

The introduction and supporting text remain left-aligned. Use Small when the enquiry is simple and Large when the form has several approved fields.

The same Contact form with the form on the left and the portrait on the right.

Image position: Right.

Colors

Contact form Colors settings in the Theme Editor: Background color, Text color.

The Colors group in the Theme Editor.

SettingWhat it controlsDefault
Background colorThe section surface behind the form and optional image.Leave blank to inherit Theme settings > Colors > General; selecting a color in this section overrides the inherited value.
Text colorThe default text color for the form and supporting copy.Leave blank to inherit Theme settings > Colors > General; selecting a color in this section overrides the inherited value.

Check field labels, messages, and the submit button against the selected colors.

Spacing

Contact form Spacing settings in the Theme Editor: Section spacing, Top spacing, Bottom spacing.

The Spacing group in the Theme Editor.

SettingWhat it controlsOptions or default
Section spacingChooses the section's spacing scale.Small, Medium, or Large. Default: Medium.
Top spacingAdds or removes the section's top spacing.Enabled by default.
Bottom spacingAdds or removes the section's bottom spacing.Enabled by default.

Field blocks

Name block settings in the Theme Editor.

Field blocks have no settings of their own; add, remove, or reorder them in the sidebar.

The section accepts up to 12 blocks. Blocks can be reordered in the Theme Editor.

BlockPurpose and limitSettings
NameOptional name field. Limit: 1.None.
PhoneOptional phone field. Limit: 1.None.
SubjectOptional subject field. Limit: 1.None.
CustomAdds a store-specific text field. Repeatable within the section's 12-block limit.Label, default Custom field; Required field, disabled by default.

The form always renders Email and Message in addition to the optional blocks. They are not added through the block picker.

Validation and form states

FieldWhat shoppers see
NameOptional text field, maximum 100 characters.
EmailRequired email field, maximum 254 characters. Shopify validates the email value.
PhoneOptional telephone field, maximum 30 characters; the current input requests numbers only.
SubjectOptional text field, maximum 150 characters.
CustomText field, maximum 255 characters; becomes required only when Required field is enabled.
MessageRequired textarea with a minimum of 10 and maximum of 5000 characters.

On an invalid submission, the form displays Shopify's form errors. On success, it displays the translated success status. Check both states with non-sensitive test information and confirm that keyboard users can reach the status.

Privacy and support boundaries

Never ask visitors to submit passwords, payment-card details, private API credentials, or unnecessary customer information. Explain sensitive workflows through a secure support process instead of adding more form fields. Review the store's privacy notice and where Shopify sends contact notifications before publishing.

Desktop and mobile behavior

Contact form on mobile with the image above the heading and a single column of fields.

On mobile the image sits above the form.

The image can sit beside the form when supplied. Preview the longest field label, the error state, the success state, and image stacking on desktop and mobile.

Accessibility

  • Keep field labels visible and unique, especially for repeated Custom fields.
  • Use a meaningful image alt text or make the image decorative when the copy already communicates its purpose.
  • Test keyboard order, visible focus, browser autofill, invalid-field messaging, and the success status.
  • Mark only genuinely required fields as required; do not enable Required field merely to collect optional context.

Common issues

SymptomSafe check
A field is duplicatedRemove the extra Name, Phone, or Subject block; each has a limit of one.
A custom field is not requiredEnable Required field on that Custom block.
The submit button does not sendComplete the required Email and Message fields and satisfy the message length rule.
Error text is not visibleSubmit a controlled invalid test and check focus and the Shopify form error state.
Notifications go to the wrong placeConfirm the store's Shopify contact notification settings; the section does not define the destination.

Search documentation

Search across the Strata guide