Skip to documentation content

Contact Form with Thank You Message

All complete examples

Demonstrate Contact Form with Thank You Message.

What this example teaches

  • Compose Contact Form with Thank You Message from reusable section and theme templates
  • Keep the page template thin by including shared partials
  • Keep custom fields on the template that owns them

View this pattern on the live demo site

Files

Visit Us page: banner, contact block with form, then a map.

Liquid
{% comment %}
	Renders a super simple contact page
{% endcomment -%}
{%- include "/_header.liquid" no_header_title: true -%}
{%- include "/sections/_generic_banner.liquid" -%}
{%- include "/sections/_breadcrumbs.liquid" -%}
{%- include "/sections/_contact_info_with_form.liquid" %}{% comment %}For a simpler layout, use /sections/_form_section.liquid{% endcomment -%}
{%- include "/sections/_map.liquid" section_class:'mt-3' -%}
{%- include "/_footer.liquid" -%}