How to Write Image Alt Text in WordPress

Decide what a reader needs from each image, then add or check its alt text in the WordPress editor.
Editor reviewing a brass wall lamp photo on a laptop

Good WordPress image alt text tells readers what they would miss if they couldn’t see the image. Describe the useful detail in an informative photo, name the destination if the image is the only thing in a link, and use empty alt text for decoration. You can do all three with the built-in Image block.

Jump to choosing what to describe, adding alt text in WordPress, checking older posts or reviewing AI suggestions.

Write WordPress image alt text for the job the image does

Say you’re publishing a product page for an adjustable wall lamp. If the photo shows how the arm bends, “Black wall lamp with a curved, adjustable arm” gives a shopper the detail the photo contributes. On a fitting guide, the same image might help someone identify where the arm meets the wall. Describe the detail the reader needs in that location.

Black wall lamp with a curved, adjustable arm

If a photo alone links to the fitting guide, “Read the wall lamp fitting guide” gives the link a useful name. If the same link already contains those words as visible text and the photo adds no separate information, the image can have empty alt text. A gold divider used purely for decoration can use empty alt text too. Here it’s described because it serves as an example.

Sample decorative gold star divider on charcoal paper

For a chart or a diagram, use a short description to identify it and put the important findings, steps or data into nearby readable text. A screen reader user should be able to get the same information without having to listen to a long run of figures inside an image description. The W3C alt text decision tree covers these choices.

Add alt text in the WordPress Image block

Open the post or page and select the image. If the settings sidebar is hidden, open it with the Settings button in the editor toolbar. In the block sidebar, find Alternative text under Content and add your description. Use Mark as decorative when the image contributes no information or function. The WordPress Image block guide shows both controls.

An edit in the block applies to that use of the image. An edit in the Media Library supplies a default when you insert the image elsewhere. For a published post, open the existing block and verify its own setting. For a featured image, product gallery or page-builder image, check what the live template actually outputs. If an image fails to display, start with our WordPress image upload checks.

Review older posts one page at a time

Start with a page that people rely on, such as a service page or a product guide. If you are reviewing the rest of the page for accessibility, check its WordPress heading structure too. Read the paragraph next to each image, then decide whether the image adds a detail, serves as a link, or only decorates the page. For a screenshot with instructions, write the action in the surrounding paragraph so readers can find it in text.

Preview the updated page and check the images in place. If you can inspect the rendered HTML, verify that an informative image has the expected alt value and a decorative image uses an empty alt attribute. Tab through image-only links and check their accessible names in your browser’s accessibility inspector or with a screen reader. If the destination is broken, follow our guide to fixing broken links in WordPress posts.

Use AI for a first draft when reviewing many images

For public, non-sensitive images, an approved tool can suggest a starting description. Supply the role of the image and the page context, then compare the result with the actual image. Remove invented features, generic phrases and repeated keywords. Make the decorative and linked-image decisions yourself. Check what a service uploads, retains or uses before sending unpublished client images, screenshots or other sensitive material.

If your theme or product template makes image descriptions hard to manage, contact DriftFix with one affected URL and where you edit the image. We can check what WordPress saves and what the page serves.

Tell Me About Your Website

Just give me the basics. I’ll review your enquiry and we can take it from there.
WhatsApp