How to fix "link has no discernible text" on linked images
This warning means a link contains only an image, and that image has no alt text, so assistive technology cannot say where the link goes. Fix it by giving the image short alt text that describes the link's destination or action, such as "Home" or "Facebook".
The message "link has no discernible text" (Lighthouse words it as "Links do not have a discernible name") appears when a link holds only an image and nothing else a computer can read as a name. Typical examples are a logo that links to the home page, a row of social media icons, a product photo that links to the product, or a banner that links to a sale.
Sighted visitors see a clear picture and know what it does. Someone using a screen reader hears only "link", or sometimes a file name such as "IMG_2043.jpg". With five unnamed links in a row, they cannot tell which is Facebook and which is your contact page.
What people see and hear
Nothing looks wrong on screen. That is why this problem survives for years. The difference only shows up when the page is read aloud, navigated by voice, or listed in a screen reader's links menu, where several entries are blank or say "link".
Voice control users are affected too. If they say "click Instagram" and the link has no name, nothing happens.
Why it matters
- Accessibility and legal risk: this fails WCAG success criteria 1.1.1 (Non-text Content), 2.4.4 (Link Purpose in Context) and 4.1.2 (Name, Role, Value). Accessibility rules and complaints in many countries point to WCAG, so unnamed links can count against you.
- Sales and trust: if your logo, cart icon or product images are unnamed, some visitors cannot shop or reach your contact page.
- Search: search engines use link text and image alt text to understand what a link points to. A named link gives them more to work with than a blank one.
How to check your site for free
- Lighthouse in Chrome: open your page, press F12, choose the Lighthouse tab, tick Accessibility and run it. Look for "Links do not have a discernible name". It lists the exact elements.
- WAVE: the free WAVE browser extension from WebAIM shows red error icons, including "Linked image with empty alternative text" or "Empty link".
- axe DevTools: the free browser extension reports this as the
link-namerule. - Chrome DevTools Accessibility pane: right-click a link, choose Inspect, then open the Accessibility tab. The Name field should not be empty.
- A quick listen: NVDA (free on Windows) or VoiceOver (built into Mac and iPhone) can list all links on a page. Blank entries are your problem links.
Test the home page, a product or service page, and any page with a footer or header icon set, because these are shared across the whole site.
How to fix it in general
The fix is to give the link a name. Pick the option that fits.
Option 1: alt text on the image (best for most cases). Describe where the link goes or what it does, not what the picture looks like.
<a href="/"><img src="logo.png" alt="Acme Plumbing, home"></a>
<a href="https://facebook.com/acme"><img src="fb.svg" alt="Facebook"></a>
Option 2: a label on the link itself. Useful for icons or CSS background images where there is no img tag.
<a href="/cart" aria-label="View cart"><svg aria-hidden="true">...</svg></a>
Option 3: visually hidden text. Many themes include a screen-reader-only CSS class for this. The text is in the link but not shown on screen.
A few rules of thumb:
- Keep it short. "Contact us" beats "Image of a telephone that links to our contact page".
- Do not start with "link to" or "image of". Screen readers already announce a link.
- If the link already has visible text next to the image, the image can have empty alt text (
alt=""), otherwise the text is read twice. But if the image is the only thing in the link, empty alt makes the link nameless. The difference is explained in decorative images and alt text. - Avoid relying on the
titleattribute. Support is inconsistent and it is not a dependable name. - Do not hide a link icon with
aria-hiddenwhile leaving the link itself focusable and unnamed. See aria-hidden on focusable elements.
Fixing it on common platforms
Exact menu names depend on your version and theme, but the pattern is similar everywhere.
- WordPress: open the Media Library and fill in Alt Text for the image. In the block editor, select the image block and use the Alt text box in the sidebar. For a logo, check Appearance, Customize, Site Identity, or the theme's header settings. See the WordPress guide.
- Shopify: for product images, edit the product and add alt text on each image. For logos and banners, the setting is usually in the theme editor under the image or header section. Some icons live in theme code (
.liquidfiles) and need a developer. - Wix, Squarespace, Webflow: click the image, open its settings, and look for Alt text or an accessibility description. Social icons are often built in, so check the element's settings for a label field.
- Elementor and WooCommerce: images and icon widgets have their own alt or aria label fields. Product images take alt text from the media item.
If the unnamed link comes from the theme itself (for example a built-in cart or search icon), you may not be able to edit it in a visual editor. In that case, ask the theme developer or whoever maintains your site to add a label in the template.
How to confirm the fix worked
- Clear any caching plugin or CDN cache, then reload the page.
- Run Lighthouse or WAVE again. The "discernible name" error should be gone for the elements you fixed.
- In DevTools, inspect one fixed link and confirm the Accessibility Name reads as you intended.
- Tab through the page with your keyboard. Use a screen reader if you can, and check that every link is announced with a clear name.
How to stop it coming back
- Make alt text a required step whenever someone uploads an image that will be linked.
- Check any new theme, header, footer or social icon set before you switch it on.
- Re-test after redesigns and plugin updates, since these often replace shared parts of the page.
- Run an accessibility check on a schedule rather than only after complaints. SiteMonday does this in week 7 with its WCAG 2.2 accessibility audit, which finds and explains issues like this. Fixing them stays with you or your developer.
Once each linked image has a clear name, your links make sense to everyone, whether they see the page or hear it.
Step by step for your platform
- Linked images with no accessible name on WordPress
- Linked images with no accessible name on Shopify
- Linked images with no accessible name on Wix
- Linked images with no accessible name on Squarespace
- Linked images with no accessible name on Webflow
- Linked images with no accessible name on Elementor
- Linked images with no accessible name on WooCommerce
Questions
What does "link has no discernible text" mean?
It means a link has no name that assistive technology can read. This usually happens when a link wraps only an image that has missing or empty alt text.
Should I use empty alt text on a linked image?
Only if the link also has visible text next to the image that already names it. If the image is the only content in the link, give it alt text that describes where the link goes.
What should the alt text say for a linked logo?
Say where the link goes, such as "Acme Plumbing, home", rather than describing the artwork. Keep it short and skip words like "image of" or "link to".
Can I fix this with aria-label instead of alt text?
Yes. An `aria-label` on the link gives it a name and works well for icons and CSS background images. For a normal `img` tag, alt text is usually the simpler choice.
Will fixing this help my search ranking?
It helps search engines understand what linked pages are about, but it is mainly an accessibility fix. Treat any ranking effect as a small bonus, not a guarantee.
Do I need a developer to fix it?
Often not. Alt text can be added in your media library or page editor. A developer is only needed when the unnamed link is built into your theme's template code.