Guide · Shopify
Shopify link has no text: how to fix it
How this guide was made: Written with AI assistance and checked against the sources linked on this page.
Updated
Short answer
A Shopify link "has no text" when it holds only an icon or an image and nothing a screen reader can read as its name. Deque's axe rule link-name says: "Link text and alternate text for images, when used as links, must be discernible by a screen reader, must not have a duplicate label, and must be focusable." Fix it by adding a visually-hidden span with the destination ("Instagram"), an alt on the image inside the link, or an aria-label, and by hiding the decorative icon with aria-hidden="true". See The fix. In our study, 272 of 500 stores (54.4%) failed link-name (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.
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 screen reader user opens the list of links on the page, or tabs through it, and may hear "link" with no name, or only the web address. W3C's Understanding page for WCAG 2.4.4 says the purpose is to "help users understand the purpose of each link" and asks for link text that "identifies the purpose of the link without needing additional context." A row of social icons that all read as "link, link, link" tells the person nothing about which goes to Instagram and which to Facebook. WCAG 4.1.2 asks for the same thing from another angle: "the name and role can be programmatically determined."
How to test it
- Free checker. Run 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. Link names on the homepage are in scope.
- Browser DevTools. Right-click the icon, choose Inspect, and open the Accessibility tab in the Elements panel. Chrome describes it as the place to view "computed accessibility properties of DOM nodes". A link with no name there has the problem. In the HTML, look for an
atag that holds only ansvgor animgwith an emptyalt. - Keyboard Tab. Tab through the header, the product cards and the footer. Each stop on a link should have a clear reason for being a link. If you use a screen reader (NVDA, VoiceOver or Narrator), open its list of links and look for entries that are blank or only a URL.
Where to look in your theme
Look for link-only icons and images in four places: the footer social icons, the header logo, image tiles (banners, collection cards, promo blocks) and "learn more" arrows. In Shopify's Dawn theme (checked on main, commit 779b283, 16 Nov 2026) they are named. These are the patterns to copy.
The social links, in snippets/social-icons.liquid:
<a href="{{ settings.social_facebook_link }}" class="link list-social__link">
<span class="svg-wrapper">
{{- 'icon-facebook.svg' | inline_asset_content -}}
</span>
<span class="visually-hidden">{{ 'general.social.links.facebook' | t }}</span>
</a>
Dawn's locales/en.default.json defines general.social.links.facebook as "Facebook" and general.social.links.instagram as "Instagram", with matching keys for the other networks.
The logo link, in sections/header.liquid, gives the logo image an alt. The name falls back to your shop name when the logo image has no alt text:
<a href="{{ routes.root_url }}" class="header__heading-link link link--text focus-inset">
{%- if settings.logo != blank -%}
<div class="header__heading-logo-wrapper">
{%- assign logo_alt = settings.logo.alt | default: shop.name | escape -%}
and later passes alt: logo_alt to image_tag. If there is no logo image, the link holds <span class="h2">{{ shop.name }}</span>, which is text.
The same visually-hidden pattern appears for the social icons in the mobile menu, in snippets/header-drawer.liquid, for example <span class="visually-hidden">{{ 'general.social.links.twitter' | t }}</span>.
So an unnamed link comes from somewhere Dawn does not control: a theme that is not Dawn, a custom section with an a around an image, a page-builder block, a hand-written footer, or an app. Search your theme files (Online Store, then the horizontal menu, then Edit code; Shopify says to "Duplicate your theme to create a backup copy" first) for <a and check each one that contains only an svg or an img. Also look for empty links, where the link wraps nothing at all.
The fix
Before. An icon-only link with no name:
<a href="{{ settings.social_instagram_link }}">
<svg viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16 8 8 0 000-16z"/></svg>
</a>
Option 1: visually-hidden text. This is Dawn's own pattern. Use the translation key your theme already has, or plain words:
<a href="{{ settings.social_instagram_link }}">
<svg aria-hidden="true" viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16 8 8 0 000-16z"/></svg>
<span class="visually-hidden">{{ 'general.social.links.instagram' | t }}</span>
</a>
If your theme does not define visually-hidden, copy Dawn's rule from Shopify form field has no label.
Deque's rule page says: "link text cannot be hidden" from screen readers. So do not use display: none or hidden on the text: use the class above, which keeps it in the page for a screen reader. Do not put aria-hidden="true" on the text that names the link either; it goes on the decorative svg only.
Option 2: aria-label. Use it when you cannot add a span:
<a href="{{ settings.social_instagram_link }}" aria-label="{{ 'general.social.links.instagram' | t }}">
<svg aria-hidden="true" viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16 8 8 0 000-16z"/></svg>
</a>
MDN says: "If there is visible text that labels an element, use aria-labelledby instead." Use aria-label when no visible text names the link.
Image links. When an image is the only content of the link, its alt is the link's name. Deque names this case in the rule: "alternate text for images, when used as links". Say where the link goes, not what the picture shows:
<a href="{{ collection.url }}">
{{ collection.featured_image | image_url: width: 600 | image_tag: alt: collection.title }}
</a>
Check your store's homepage for accessibility issues, free. We open it like any visitor and only read the page.
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.
If the link already has visible words next to the image (a title under a product photo, for example), a duplicate name is not needed: keep the visible words in the link, and give the image an empty alt="" so the same words are not read twice.
Hide the decorative icon. MDN: "The aria-hidden state indicates whether the element is exposed to an accessibility API." Put aria-hidden="true" on the svg. MDN also warns: "Do not use aria-hidden="true" on focusable elements." Put it on the svg, not on the a itself.
Empty links. A link with nothing inside, such as one left behind by a deleted block, should be deleted or given text. After you delete it or give it text, Tab through the page to confirm the empty stop is gone.
Do not style away the focus change. Deque's fix list for this rule includes: "Do not modify the style of the links to suppress the change in style when a link is the object of programmatic focus."
How to check it's fixed
- In DevTools, inspect each icon link. The Accessibility tab shows a name that matches the destination.
- Tab to each one. A screen reader reads the name and "link". Without a screen reader, check the Accessibility tab again.
- Check the logo: with images switched off, the shop name should still be there as text, or the
altshould name your shop. - Run the Shopify accessibility checker again. It checks your homepage, so open a collection page and a product page and repeat steps 1 and 2 on the links there.
Every Shopify accessibility guide we publish, and the outside sources we rely on, are listed in the Shopify accessibility and ADA resource hub.
FAQ
What counts as link text?
Words inside the link, the alt of an image inside the link, or an aria-label on the link. Deque's rule lists "Link text and alternate text for images, when used as links" as what must be discernible.
Does a title attribute count?
Do not rely on it. The Deque rule page we read names link text and image alt text as what a screen reader must be able to discern, and does not list title.
Which WCAG criteria apply?
Deque tags link-name to 2.4.4 (Link Purpose, In Context) and 4.1.2 (Name, Role, Value), both Level A.
Should the name say "link" or "opens Instagram"?
Name the destination, for example "Instagram". Listen with your screen reader to confirm it announces the role "link" itself. If a link opens in a new window, Dawn's locale file has a message for it: "Opens in a new window."
My social icons come from an app. What can I do?
If the markup is not in your theme files, look in the app's settings for a label option. If there is none, replace the app's icons with a block in your theme, as above.
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.
Related guides
- The 16 accessibility mistakes in 108 Shopify stores
- 500 Shopify stores that run an accessibility widget: what the check found
- How to add alt text in Shopify
Sources
- Deque axe rule: link-name
- W3C: Understanding 2.4.4 Link Purpose (In Context)
- W3C: Understanding 4.1.2 Name, Role, Value
- MDN: aria-hidden
- MDN: aria-label
- Shopify Dawn: snippets/social-icons.liquid
- Shopify Dawn: sections/header.liquid
- Shopify Dawn: snippets/header-drawer.liquid
- Shopify Dawn: locales/en.default.json
- Shopify Dawn: assets/base.css
- Chrome DevTools: Accessibility features reference
- Shopify Help Center: Edit theme code
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.
Use the free Shopify accessibility checker, or see a sample fix report. Black Friday deal: $390 until 30 Nov, then $490
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