VibeFix

Guide · Shopify

Shopify form field has no label: how to fix it

Published by Yosef Dabian, founder of VibeFix

How this guide was made: Written with AI assistance and checked against the sources linked on this page.

Updated

Short answer

A Shopify form field "has no label" when the input has no text that a screen reader can announce as its name. Deque's axe rule label says each form element "must have a programmatically associated label element." A placeholder is not the recommended way to do that: Deque says it "may be used to give text inputs an accessible name" but calls that "not a recommended solution". Places to look are the newsletter field in the footer, the contact form and the search field. Fix it by giving each field a label whose for matches the field's id, as in The fix. In our study, 17 of 500 stores (3.4%) failed this rule (frame: 500 US Shopify stores drawn from the 3,388 that ran an accessibility widget in HTTP Archive's 1 Nov 2026 crawl, homepage, automated).

Check your store's homepage for accessibility issues, free. We open it like any visitor and only read the page.

Check my store free

Free. No email needed. It usually takes about a minute.

Want it fixed? Our AI agent fixes accessibility issues in your Shopify theme's code within 48 hours of you giving us access to your theme, on an unpublished copy you preview and publish yourself. $390 until 30 Nov (Black Friday), then $490 one time. See the store service.

What a screen reader or keyboard user meets

A person using a screen reader tabs into the email box and hears no name for it. They know there is a text box, but not whether it wants an email, a name or a search term. W3C's Understanding page for WCAG 1.3.1 gives this example: "In a form, the labels for each checkbox can be programmatically determined by assistive technology." Success criterion 3.3.2 adds the plain requirement: "Labels or instructions are provided when content requires user input."

A placeholder is not the fix. Deque's rule page says placeholder is not recommended because the label disappears once the user types. W3C says that "When labels or instructions are provided, they need to be persistently available to users."

How to test it

  1. Free checker. Run your store address through the Shopify accessibility checker. It runs a read-only automated check on your public homepage and covers what software can test of WCAG 2.0 and 2.1, Levels A and AA. It is one page, so a form on another page needs the other two tests.
  2. Browser DevTools. In Chrome, right-click the field, choose Inspect, and open the Accessibility tab in the Elements panel. Chrome describes it as the place to "view the accessibility tree, ARIA attributes, and computed accessibility properties of DOM nodes." Look for a name on the field. A field with no name there has no label.
  3. Keyboard Tab. Press Tab until the field has focus. Then click the label text, if the page shows any. When for and id match, the click puts the cursor in the field. If the page shows only a placeholder, there is nothing to click, and the field needs a label.

Where to look in your theme

In Shopify's Dawn theme, checked on the main branch of github.com/Shopify/dawn (commit 779b283, 16 Nov 2026), the newsletter form is in sections/footer.liquid. Dawn labels the field correctly. The input and its label read:

placeholder="{{ 'newsletter.label' | t }}"
required
>
<label class="field__label" for="NewsletterForm--{{ section.id }}">
  {{ 'newsletter.label' | t }}
</label>

The input above that has id="NewsletterForm--{{ section.id }}", and the for on the label points at it. The search field in snippets/header-search.liquid does the same:

<label class="field__label" for="{{ input_id }}">{{ 'general.search.search' | t }}</label>

The contact form in sections/contact-form.liquid has <label ... for="ContactForm-name"> and for="ContactForm-email". So an unlabeled field comes from a place Dawn does not control: a theme that is not Dawn, a section someone added by hand, a custom contact or sign-up form, or a form that an app puts on the page. If an app draws the form, the markup is not in your theme files, so look in that app's form settings for a label option.

To find your own, open Online Store, then the horizontal menu, then Edit code. Shopify's help page says to "Duplicate your theme to create a backup copy" before you change files. Work on the copy. Search the files for <input, <textarea and <select, and for each one check that a label points at its id.

The fix

A field before, with a placeholder and no label:

<input type="email" name="contact[email]" placeholder="Email">

After. Pick an id that is unique on the page, because Deque's rule page says to "ensure that all id elements are unique on each page":

<label for="Newsletter-{{ section.id }}">{{ 'newsletter.label' | t }}</label>
<input
  id="Newsletter-{{ section.id }}"
  type="email"
  name="contact[email]"
  autocomplete="email"
  required
>

newsletter.label exists in Dawn's locales/en.default.json with the value "Email". If your theme has no such key, write the word in plain text: <label for="Newsletter-{{ section.id }}">Email</label>.

When the design has no room for a visible label, hide the label from the eye but keep it for the screen reader. Dawn's own visually-hidden class does this. Use it on the label, not on the input:

<label class="visually-hidden" for="Newsletter-{{ section.id }}">{{ 'newsletter.label' | t }}</label>

If your theme does not define the class, add Dawn's rule from assets/base.css:

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

Do not use display: none or hidden on the label. A label that is not rendered may leave the field with no name, so after any change check the field's name in the DevTools Accessibility tab.

Last resort: aria-label. Deque says aria-label is acceptable when the label is already conveyed visually, since it creates "an invisible text label for screen readers to read." MDN advises: "If there is visible text that labels an element, use aria-labelledby instead." Example when a field has a visible icon and no room for text:

<input type="search" name="q" aria-label="{{ 'general.search.search' | t }}">

(general.search.search is Dawn's key, "Search". Use a key your theme has, or type the word.)

Check your store's homepage for accessibility issues, free. We open it like any visitor and only read the page.

Check my store free

Free. No email needed. It usually takes about a minute.

Want it fixed? Our AI agent fixes accessibility issues in your Shopify theme's code within 48 hours of you giving us access to your theme, on an unpublished copy you preview and publish yourself. $390 until 30 Nov (Black Friday), then $490 one time. See the store service.

A label element is the better choice when you can fit one: Deque's rule page calls it "the recommended method for most circumstances".

How to check it's fixed

  1. Reload the page and press Tab to the field. Click the label text; the cursor lands in the field.
  2. In DevTools, open the Accessibility tab on the field and see a name that matches the label.
  3. Type in the field: the label is still there. A placeholder alone would have disappeared.
  4. Run the Shopify accessibility checker again. It checks the homepage only, so open your contact page and any other page with a form and repeat steps 1 and 2.

Every Shopify accessibility guide we publish, and the outside sources we rely on, are listed in the Shopify accessibility and ADA resource hub.

FAQ

Is a placeholder a label?

Not a recommended one. Deque's rule page says a placeholder "may be used to give text inputs an accessible name" and calls that "not a recommended solution", because the label disappears once the user types. A field with only a placeholder may therefore pass the automated check, so use the test steps above. Add a real label and keep the placeholder as an example of the format if you want one.

Which WCAG criterion does this map to?

Deque tags the label rule to WCAG 4.1.2 (Name, Role, Value) at Level A. W3C's Understanding pages for 1.3.1 and 3.3.2 describe the same need from the other side: labels that can be programmatically determined, and labels or instructions when content requires input.

My newsletter form comes from an app. Can I still fix it?

The markup is in the app, not in your theme files. Check the app's form settings for a label or field-name option. If there is none, the label has to come from the app's own code or from a replacement form in your theme.

Does a hidden label count?

A label hidden with the visually-hidden class counts, because it stays in the page for screen readers. A label hidden with display: none may not; check the field's name in DevTools.

Should I use aria-label or label?

Use label with for first. Deque's page calls it "the recommended method for most circumstances". Use aria-label when the visible design has no room for text.

Does the free checker test every form?

No. It tests your public homepage only, so forms on other pages need a manual check.

Want it fixed?

VibeFix's AI agent fixes these issues in your theme's code on an unpublished copy. You preview the copy and publish it yourself, and the AI agent re-checks your live store and gives you a dated before-and-after report.

Shopify accessibility checker

Related guides

Sources

Last checked: 26 November 2026.

VibeFix is independent. Shopify is a trademark of its owner.

Want it fixed?

Our AI agent fixes accessibility issues in your Shopify theme's code within 48 hours of you giving us access to your theme, on an unpublished copy you preview and publish yourself. $390 until 30 Nov (Black Friday), then $490 one time. See the store service.

It starts with a free check of your public homepage. No email needed.

Check my store free

Shopify Accessibility Watch

Our monthly store-check numbers, one email a month.

We send a confirmation email first. One email a month, unsubscribe in one click. See our privacy notice.

More guides · Shopify store accessibility · About · Your privacy choices