Skip to content
Sign in Get started
Menu
Docs menu

Contact form

Applies to Companion 1.0.3 Updated 8 November 2026 View as Markdown

LanternWP Companion adds a contact form to your store: name, email, a topic, the order a message is about and the message itself. Messages arrive by email and are kept under WooCommerce → Messages, so none is lost if an email does not arrive.

Its settings in one place

The form has no switch of its own: it works wherever the Contact Form block stands. Go to Appearance → LanternWP → Features and select Settings in the Contact form row (Set up while no contact page is chosen): its details show each thing the form uses as it is now, with a link to where you change it:

  • Contact page: the page chosen in Settings → Reading.
  • Heading and topics: in the block's settings, on the contact page.
  • Messages: how many are new.
  • Contact message email and Contact message received email: on or off, and who receives the first.
  • Kept messages: how long, in WooCommerce → Settings → Accounts & Privacy.
  • Bot protection: whether it checks the form.

The way back is linked too: Contact form settings above WooCommerce → Messages and on each email's screen, which also links to the messages.

Where the form appears

On a LanternWP contact page, the form stands in the panel beside your contact details: the Ways to reach us, with the form pattern holds the Contact Form block, and the editor shows the form as it will look. To use it anywhere else, add the Contact Form block to a page.

To change the form's heading, "Send a message", select the Contact Form block and edit Heading in its settings, above Topics; on a page made from the pattern, it is there without Edit pattern. Leave it empty for "Send a message", which the empty field shows in gray.

The editor shows the form as a visitor sees it: empty, without your own name, email or orders filled in.

If you prefer another forms plugin, replace the Contact Form block in the contact panel with that plugin's form: the panel then shows that form, in the theme's look. A contact page made from the pattern while Companion was inactive has the panel empty; add the Contact Form block, or another plugin's form, to it.

Without a form in the panel, the contact details show as a row of cards instead.

The contact page

The LanternWP theme builds a contact page from sections, each a pattern you insert from the Help & contact category, in any order and on any page:

  • Ways to reach us, with the form: your store's email, phone and address from its settings, which follow those settings after you save the page, beside the contact form (see Your contact details).
  • Help shortcuts: cards that lead to the customer's orders and to your shipping and returns page.
  • Questions with a link to all: a few questions with their answers and a link to all of them.
  • Visit the store: a photo of your store, its address and phone from its settings, its opening hours and a button (see The store to visit).

Replace the example text, hours and photo with your own. The demos show three ways to combine them, and a demo's contact form comes with its topics.

Your contact details

Ways to reach us, with the form shows your store's email, phone and address beside the form, each read from where WooCommerce keeps your store's details; the phone is Companion's Store phone under Store Address in WooCommerce → Settings → General. Where to set each one, and what the page shows while one is missing: Set your store's contact details.

The fields

The form always asks for a name, an email address and the message, the topic when the block has topics (see Topics), and an order:

  • Order number (optional): a guest types a number, or leaves it empty; a signed-in customer chooses one of their orders instead (see Messages about an order).
  • Consent: a box the sender must check, "I agree to the processing of my data to answer me, as in the privacy policy.", with a link to the privacy policy page chosen in Settings → Privacy; without one, the sentence has no link. The form is not sent without it, and the message does not repeat it.

A form sent with fields missing shows "Please check the highlighted fields." and says under each field what it needs.

Topics

The topics people choose from, such as "An order" or "A repair", belong to the form itself:

  1. Open the contact page in the editor and select the Contact Form block. On a page made from the pattern, the topics are in its settings without Edit pattern.
  2. In its settings, under Topics, type a topic in New topic and select Add topic, or press Enter. Add the others the same way.
  3. To change the order, open the menu beside a topic and choose Move up or Move down; Remove takes it off the list.
  4. Save the page.

People choose one topic, in the order of the list. Without topics, the form does not ask for one, and the block's settings say "No topics".

Open the form at a topic

A button that leads to your contact page can open the form with a topic already chosen, such as a Free design help button that opens it at "Design help":

  1. Select the button, and link it to your contact page.
  2. Under Contact topic, choose one of the form's topics: in the button's settings, or, for a button in a section made from a pattern, such as Visit the store, in the section's settings without Edit pattern. The list is the Contact Form block's topics on the contact page; None opens the form without one.
  3. Save the page.

The button then opens the contact page at the form, with that topic chosen. If you later rename or remove the topic in the Contact Form block, the button's settings say it is "no longer a topic of the contact form", and the button opens the form without a topic until you choose another. A button that no longer leads to the contact page says so too. While the form has no topics, Contact topic says "The contact form has no topics", with a link to the contact page.

The store to visit

The Visit the store section shows your store's photo, a heading and a few lines, its address and phone, its opening hours and an optional button. The address and phone come from your store's settings, as on the contact page (see Set your store's contact details), and each is left out while it is not set. To leave both out, as the contact page does because its ways list them already, select the section and turn off Show address and phone in its settings. The section you insert from the Help & contact category has it on; the one on the contact page made from the pattern has it off.

Opening hours have no setting: replace the example hours with your own. A button in the section can open the form at a topic (see Open the form at a topic).

Emails

Two emails are under WooCommerce → Settings → Emails, in your store's email style:

  • Contact message goes to you for every message. Choose who receives it under Recipient(s). Replying to it answers the sender.
  • Contact message received tells the sender you have their message. It is off until you turn it on, and it never repeats what they wrote.

The preview on each email's screen, and the test email sent from it, show a sample message from "Sample customer".

Reading messages

WooCommerce → Messages lists the messages with the sender's email, the order and when each was Received. A message no one has opened yet says New in the list, and the number of new messages shows beside Messages in the menu, as WooCommerce counts orders to process beside Orders. Opening a message with Read shows its fields and a Reply by email button, and it is no longer new. Trash under a message, or Move to Trash in Bulk actions, deletes it.

Messages about an order

A signed-in customer sees their name and email filled in and chooses one of their orders. On an order's page in their account, Ask about this order opens the contact page with that order chosen. The contact page is the one chosen under Settings → Reading → Store pages (Choose your store pages). With another theme, it is the first published page with the Contact Form block. Without such a page, the link is left out.

When a signed-in customer's message names one of their orders, it is linked from the message, and a private note on the order says a message came, with a link to it. A guest who types an order number keeps it in the message and in the list's Order column as they typed it, without the link or the note: anyone can type an email address, so the form cannot tell that the order is theirs.

Spam

The form stops most bots without asking anything: a field that people never see, a form sent within seconds of opening the page, and more than 10 messages from one connection in 10 minutes are all refused. Visitors behind one network, such as an office or a mobile carrier, may share a connection, so the limit is generous. For more, turn on bot protection and check The contact form.

Privacy

Messages are personal data:

  • They are deleted after 12 months. Change this under WooCommerce → Settings → Accounts & Privacy → Retain contact messages, beside WooCommerce's own retention settings, or leave it empty to keep them.
  • Tools → Export Personal Data and Tools → Erase Personal Data include them, found by the sender's email.
  • Settings → Privacy suggests a paragraph about them for your privacy policy.