Note: While our most popular guides have been translated into Spanish, some guides are only available in English.

Adding alt text to images

Alt text is text you add to images to make them more accessible to visitors. Search engines also use alt text to identify the content of the image, so it’s a great way to give your site an SEO boost. Your image’s filename usually serves as the alt text if you don’t manually add alt text. For image blocks, you need to manually add alt text. 

Alt text is also helpful for assistive screen readers or browsers with images disabled. If a browser can't display the image, the alt text may be displayed instead. When you add alt text, use short, readable terms that describe the image. Follow our tips to make your images accessible.

This guide reviews how to add alt text to your site's images, and images that include alt text automatically.

Watch a video

Alt text best practices

When writing alt text, remember that you're writing for humans who use assistive screen readers or who disabled images in their browser. Keep in mind:

  • Be descriptive and helpful. How would you describe this image to someone who couldn't see it?
  • Keep the text short, typically twelve words or fewer.
  • Optimize your text for search by incorporating keywords, but avoid keyword stuffing.
  • Write in real sentences; don't use hyphens to separate words.
  • You can omit words like "the" and "a," and terms like "photo" or "picture." For example, instead of a picture of a green vase, use green vase.

Image file names

An image's filename acts as alt text if there isn't any other alt text added, except for image blocks.

To change the filename for most images, re-upload the image with the new name or change the filename in the image editor. For example, with image blocks, open the block editor, go to the Content tab, then update the Filename field in the Content tab.

Tip: Only use letters, numbers, underscores, and hyphens in file names.

The filename field in the Image Block editor

Site logo

The site title serves as the alt text for the site logo.

Image blocks

You can add alt text to any image block layout. If you don’t add alt text to image blocks, the image is hidden from assistive technologies, like screen readers. To add alt text:

  1. In the image block editor, click the Design tab.
  2. Go to Image alt text, then enter your alt text in the field.
  3. Click Save.

image_block_with_alt_text.png

Auto layout and gallery section images

Auto layouts and gallery sections are only supported in version 7.1.

You can add alt text to auto layouts and gallery sections, but each uses a different method.

Auto layouts

If your auto layout has text and images, you can add alt text to the images in that section. Auto layouts that don't have both text and images don't support alt text.

To add alt text to items in auto layout sections:

  1. While editing a page, hover over the auto layout section and click Edit Content.
  2. Click the Content tab.
  3. Click the image you want to add alt text to.
  4. Scroll to Image Alt Text and enter your alt text in the field.
  5. Click Back, then click Save.

If the Image Alt Text field doesn't appear, the auto layout doesn't support alt text.

Gallery sections

Gallery sections primarily showcase images. If you add a description to gallery section images, it automatically becomes alt text and the caption for the image.

Gallery block images

In version 7.1 you can only add gallery blocks to blog posts, product items, and individual events.

To add alt text to an image in a gallery block:

  1. Double-click the gallery block or click Edit.
  2. Find the image to edit, hover over it, and click .
  3. Add alt text to the Enter an image title field. If you don't add an image title, text in the description field becomes alt text.
  4. Click Save.

The image editor with title and description fields.png

Blog post and event thumbnails

The title of a blog post or event serves as the alt text for the post or event thumbnail. For Event Pages, this is the same on both list and calendar layouts.

Page thumbnail image

File names serve as alt text for page thumbnail images. Ensure that you name all thumbnail images as you want them to appear before uploading them.

Video block thumbnail image

When you add video blocks to your page using a URL, the block automatically generates a thumbnail image and appears as an overlay. If you add a custom thumbnail, the file name appears in the static URL, but not as alt text. It's not possible to add alt text to video block thumbnail images.

Product images

How you add alt text to a product image on the store page depends on the product editor you're using:

  1. In your store page, hover over a product, then double click it.
  2. Hover over the product image, click the three dots, then click Edit metadata.
  3. Add your text to the Alt text field. If you don't add metadata text, the product name becomes alt text.
  4. Click Save.
    1. In your store page, hover over a product, then double click it.
    2. Hover over the product image, then click .
    3. Add alt text in the Enter an image title field. If you don't add image metadata text, the product name becomes alt text.
    4. Click Save.

Cover page images (version 7.0)

To add alt text to a cover page image:

    1. In the cover page menu, click the Media panel.
    2. Hover over the image and click .
    3. Add alt text to the Enter alt text… field.
    4. Click Save.

Gallery page images (Version 7.0)

To add alt text to an image in a gallery page:

  1. Click the gallery page in the Pages panel.
  2. Find the image to edit, hover over it, and click .
  3. Add alt text in the Image Title field. If you don't add an image title, text in the description field becomes alt text.
  4. Click Save.

Next steps

Was this article helpful?
136 out of 240 found this helpful