Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Decorative images with redundant alt text: how to fix it

PRF-303Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

The alt attribute gives an image a text description for people who cannot see it, mainly screen reader users. Images that are purely decorative should have an empty alt attribute, written alt="". Screen readers then skip them.

The problem appears when a decorative image gets alt text anyway. Common cases: a stock photo called "smiling people in office", an icon with alt "checkmark" next to the words "Free shipping", or a product photo whose alt repeats the caption right below it. This relates to WCAG 1.1.1 (Non-text Content), which says decorative content should be implemented so assistive technology can ignore it.

Same icon, two ways

Redundant alt text

  • <img src="check.svg" alt="green checkmark icon"> Free returns
  • Screen reader says: "graphic, green checkmark icon, Free returns"
  • Every list item repeats the noise

Empty alt

  • <img src="check.svg" alt=""> Free returns
  • Screen reader says: "Free returns"
  • Only the useful text is read

Why it costs you leads or sales

The direct impact is small, which is why this is rated low. But on a page full of decorative icons, a screen reader user has to listen to every one before reaching your form or buy button. That slows them down and can make them leave.

It also signals wider accessibility gaps. Accessibility complaints and legal claims often start with simple failures like these, and fixing them is quick.

How to check if your site has it

Find redundant alt text
  1. List every image with alt text

    Open your page, press F12 and run the snippet below in the Console. It prints each image and its alt.

  2. Ask one question per image

    If the image disappeared, would a visitor lose any information? If not, it is decorative and should have alt="".

  3. Compare with nearby text

    If the alt repeats the heading, caption, link text or button label next to it, it is redundant.

  4. Listen once

    Turn on VoiceOver (Mac/iOS), TalkBack (Android) or NVDA (Windows, free) and move through the page. Repeated or meaningless phrases stand out fast.

Console: list images and their alt textjavascript
document.querySelectorAll('img').forEach(function (img) {
  console.log(img.getAttribute('alt'), '|', img.currentSrc || img.src);
});
How to decide on alt text
Image typeExampleAlt text
DecorativeDivider, background swirl, stock mood photoalt=""
Icon beside text that says the sameCheckmark next to "Free returns"alt=""
InformativeProduct photo, chart, team portrait with nameShort description of what it shows
FunctionalIcon that is the only content of a link or buttonDescribe the action, e.g. "Search"

How to fix it

The fix is the same everywhere: keep the alt attribute but make it empty. Do not remove the attribute altogether. Where the steps differ is how each platform lets you do that.

Set empty alt on decorative images
  1. Block editor

    Select the Image block. In the right sidebar, clear the Alternative text field, or tick Decorative image if your version shows that option.

  2. Media Library caveat

    Alt text saved in the Media Library fills new uses of that image. Clear it there too, or override it per block.

  3. Theme images

    For images in theme template files, edit the template or ask the theme author. Use alt="" in the PHP markup.

Decorative image and decorative inline SVGhtml
<!-- Decorative image -->
<img src="/img/divider.png" alt="">

<!-- Icon next to text that says the same thing -->
<li><img src="/img/check.svg" alt=""> Free returns</li>

<!-- Decorative inline SVG -->
<svg aria-hidden="true" focusable="false" width="16" height="16">...</svg>

How to confirm it's fixed

Confirmation checks
  • Re-run the console snippet on the live page: decorative images show an empty alt, not null.
  • Inspect one fixed image in DevTools and confirm the markup reads alt="".
  • Listen with NVDA, VoiceOver or TalkBack: decorative images are no longer announced.
  • Check that informative images still have meaningful alt text.
  • Clear your site cache or CDN so visitors see the updated markup.

How to prevent it happening again

Habits that keep alt text clean
  • Add an "alt text" step to your publishing checklist: describe it, or leave it empty on purpose.
  • Do not auto-fill alt from file names or titles; it creates noise like "IMG_2041".
  • Prefer CSS backgrounds for pure decoration.
  • Train editors with the rule: if the image were removed, would anything be lost?
  • Run an accessibility scanner after each redesign or theme change.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. Whether an image is decorative is a judgement about content, and it needs an accessibility tool: a browser-based scanner such as an accessibility audit extension, or a manual screen reader review.

FunnelGuard is a synthetic monitoring service. It runs your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule and checks each step, your ad and analytics tracking, and whether test leads arrive. It is a good companion once your accessibility fixes are live, to make sure those page edits did not break a form or a tag. There is a free plan with 1 site and 2 journeys, and no card is needed.

Questions people ask

What is alt="" and when should I use it?

alt="" is an empty alt attribute. Use it on images that add no information, such as dividers, background flourishes, or icons beside text that already says the same thing. Screen readers skip images marked this way.

Is empty alt text bad for SEO?

No. Empty alt on genuinely decorative images is correct practice and does no harm. Search engines rely on alt text of meaningful images and on the surrounding text, so describe informative images and leave decorative ones empty.

Why does my screen reader read the same thing twice?

Usually an image has alt text that repeats the caption, heading or link text next to it. Set alt="" on the image, or shorten the alt so it adds something new.

What is the difference between a missing alt and an empty alt?

A missing alt attribute means the tag has no alt at all, and some screen readers then read the file name. An empty alt (alt="") tells them the image is decorative and should be skipped. Always include the attribute.

How do I mark an image as decorative in WordPress?

In the block editor, select the Image block and clear the Alternative text field, or tick Decorative image if your version offers it. Also check the Media Library entry, since alt text saved there can be reused.

Should icons next to text have alt text?

If the text beside the icon already says the same thing, give the icon alt="". If the icon is the only content of a link or button, it needs alt text describing the action, such as "Search".

How do I hide a decorative SVG from screen readers?

Add aria-hidden="true" and focusable="false" to the inline svg element. Do this only when it is purely decorative or the label sits beside it.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.