The CantoThemes journal

WordPress Image SEO: Alt Text, File Names, and Compression Explained

Optimize WordPress images with purpose-based alt text, descriptive file names, suitable dimensions, compression, captions, and verified public output.

A beautifully framed image passing through a compact compression press, with a descriptive filename tag and an accessibility description card; no written text.

WordPress image SEO combines useful image content, accessible descriptions, appropriate delivery, and clear page context. Start with an image that helps the reader, then configure its file and fields correctly.

A decorative stock photo, a product photograph, and a tutorial screenshot serve different purposes. Do not apply the same alt-text formula to every image.

Choose the image for the task

Use an original product photo to show the item, a real screenshot to explain an interface, and an illustrative image where it supports the article’s presentation.

Do not present a generated interface as a real application screenshot or a stock office as your actual premises. Readers need to know what the image establishes.

Keep the image near the relevant explanation. A screenshot at the top of a long tutorial may be less useful than the same screenshot next to the step it demonstrates.

Record the image’s source and usage rights before uploading.

Name the file before import

Choose a short descriptive filename that reflects the subject, such as wordpress-reading-settings.jpg. Avoid a long list of keywords or a camera-generated name when a clearer name is easy to provide.

Changing the attachment title later does not necessarily rename the physical file. If renaming an established file, consider the existing image URL and references.

Do not repeatedly replace working media just to insert more keywords into the name. The surrounding content and the image itself matter too.

Use a supported file type appropriate to the image and site workflow.

Write alt text according to purpose

Describe the useful information the image conveys in context. For a screenshot, identify the relevant control or state. For a product photo, describe meaningful visual details.

Alternative text added describing a skyscraper
Official WordPress Image block documentation screenshot. Demonstrates the control with example content.

This official WordPress documentation screenshot shows the alternative-text field. The example content belongs to the documentation, not this website’s media settings.

Avoid stuffing the article’s target phrase into every image. Do not add “best,” a city name, or product claims that the image does not establish.

A purely decorative image may appropriately have empty alternative text. An image acting as a link or control needs an accessible name appropriate to that function.

If a complex diagram needs a long explanation, provide that explanation in nearby text rather than forcing everything into the alt attribute.

Keep title, caption, and alt text distinct

The attachment title helps identify the library item. A caption gives visible context or credit. Alt text serves the image’s purpose for people who cannot see it.

Use a caption to explain what a screenshot proves, its source environment, or an important limitation. Do not copy a long caption into alt text automatically.

In WordPress, library metadata and values stored in an individual image block may differ. After changing the library alt text, inspect existing uses rather than assuming every old block updates automatically.

Google’s image SEO guidance explains the importance of context and descriptive information.

Resize and compress without losing the detail

Export close to the largest useful display dimensions and compress with an appropriate tool. A screenshot still needs readable controls; excessive compression can destroy its instructional value.

A photograph and an interface image may need different formats and settings. Compare the visual result and actual file size instead of choosing a format solely because it is fashionable.

Dropdown selection for image resolution
Official WordPress Image block documentation screenshot. Demonstrates the control with example content.

This official screenshot shows image-resolution selection in the Image block. Choose a suitable generated size and verify how the theme renders it.

Do not upload a tiny original and expect WordPress to create a sharp large image from it. Preserve a useful source copy in your asset workflow.

Understand WordPress image sizes

Actual Settings → Media screen from a local WordPress test installation, showing thumbnail, medium, and large image dimensions.
Actual Settings → Media screen from a local WordPress test installation, showing thumbnail, medium, and large image dimensions.

The real local Media Settings screenshot shows thumbnail, medium, and large settings. Themes and plugins can register additional sizes.

Changing these settings does not necessarily regenerate every existing image. Use a controlled regeneration process when needed and verify content references.

Check responsive output in the public page, including the actual resource downloaded at different widths. A small CSS display width does not prove a small file was transferred.

Reserve space using appropriate dimensions or aspect ratio so the page does not jump as images arrive.

Set alt text on the image actually used in the post

  1. Open the article and select its Image block.
  2. In the Block settings sidebar, review Alternative text and enter the image’s purpose in this context.
  3. Review Resolution separately. Select a size that keeps the relevant controls readable without transferring an unnecessary original.
  4. Save the draft/update and inspect the public preview, including the image’s rendered alt attribute.
  5. Check an older use of the same attachment if you changed Media Library metadata. Existing blocks can retain their own values.

For an informative screenshot, identify the useful control or state. For a purely decorative image, leave alt empty rather than adding keywords; do not erase a useful accessible name from an image that acts as a link.

Check loading and search accessibility

Keep important images available through working URLs. Avoid broken external hotlinks and access restrictions that prevent the intended audience from loading them.

Do not indiscriminately lazy-load the main above-the-fold image. Evaluate its role in the page’s loading behavior.

Inspect the public result on mobile and desktop, check alt text, captions, link behavior, and layout stability.

Use WordPress’s Image block documentation for version-specific controls. Finish by checking the actual rendered image and its context, rather than assuming the media-library fields alone complete the optimization.

Example: prepare a screenshot for a WordPress tutorial

Suppose you capture Reading Settings to explain homepage assignment. Keep the relevant controls legible and enough surrounding interface to identify the screen.

Remove private information if present, but do not change selected values and then imply the image records an actual configuration. Use a real test environment when a controlled example is needed.

Name the file descriptively, choose a suitable image format, and compare the compressed copy with the original at the article’s reading width. If labels become difficult to read, the file is too degraded for its purpose.

Write alt text identifying the meaningful controls or state. Use the visible caption to explain that it is a local example and to clarify any limitation.

Insert it next to the step that uses those controls and preview the mobile result. A screenshot spanning a desktop window may require a more focused genuine capture to remain useful on a phone.

Written by

Previous story
Next story

Leave a Reply

Your email address will not be published. Required fields are marked *