How do I add alt text to images in WordPress?

WordPress allows you to add Alt Text in two main places: directly inside a post (for a specific instance) or in the Media Library (for global management).

 

1. The Modern Method (Block Editor / Gutenberg)

This is the standard way to edit images in WordPress versions 5.0 and above.

  • Select the Image: Click on the image block within your page or post editor.
  • Open the Sidebar: Look at the Block settings panel on the right-hand side of the screen. (If you don’t see it, click the “Settings” cog icon ⚙️ in the top right).
  • Locate the Field: You will see a text box labelled “Alternative text (alt text)”.
  • Enter Your Text: Type your description.
  • Save: Update or Publish the post.

     

2. The Global Method (Media Library)

Use this method when you upload a new image before you insert it into a post.

  • Navigate: Go to your WordPress Dashboard > Media > Library.
  • Select Image: Click on the image you want to edit. A “Attachment Details” window will open.
  • Edit: Find the “Alternative Text” field on the right-hand side.
  • Save: It saves automatically as you type (you will see a “Saved” spinner).

Adding alt text in the Media Library after you have already inserted the image into a post will not update the post. You must edit the post manually to update the alt text there.

 

3. The Classic Editor Method

If you are still using the “Classic Editor” plugin:

  • Click the Image: Click the image inside the visual editor.
  • Click the Pencil: Select the “Edit” (pencil icon) button that appears.
  • Edit: Type your text in the “Alternative Text” field in the popup window.
  • Update: Click the blue “Update” button.

     

The “Decorative” Exception

It is crucial to know when not to add text.

The Rule: If an image is purely decorative (like a swooshy border, a divider line, or a background shape that adds no information), you should leave the Alt Text empty.

“If an image is purely decorative, it should be implemented so that it can be ignored by assistive technology.”

In WordPress, leaving the field explicitly empty tells screen readers to skip the image entirely, rather than annoying the user by reading out “image-552.jpg”.

Last Updated 2nd February 2026.

Was this article helpful?

We publish our Knowledge Base to help individuals and businesses resolve common issues across websites, advertising platforms, Salesforce and other digital systems.

We regularly review and update our guides, but the platforms, software and services covered can change without notice. As a result, screenshots, settings, features or recommended processes may differ from those available when an article was last reviewed.

The information provided is general guidance and should not be treated as advice specific to your systems or circumstances. UTDS Optimal Choice cannot accept responsibility for errors, data loss, service disruption or other issues resulting from changes made by following these guides.

If you are unsure about any of the steps, particularly where a change could affect live systems, data, tracking or business processes, we recommend speaking to us before making the change. Our team can review your specific setup and provide advice based on the current platform and configuration.

Time for some professional support?

Our team area ready to help. As one of the few digital agencies that is a registered Salesforce Consulting Partner and Google Partner Agency, UTDS Optimal Choice is expertly positioned to support you across your entire digital landscape.