Drupal - alt tags on images

terrid25 picture terrid25 · Jun 6, 2012 · Viewed 9.1k times · Source

I'm using Drupal 7, notably the Image field and the Media file selector widget to upload images.

The biggest problem is that these images do not have alt tags when viewing the HTML source on the frontend.

Is there a way to display such images to have the alt on images?

Thanks

EDIT:

I am using a custom theme

Answer

Dale Smith picture Dale Smith · Jun 6, 2012

You can edit the Image field for your content type by navigating to admin/structure/types/manage/[my-content-type]/fields/field_image.

Make sure both the "Enable Alt field" and "Enable Title field" are checked. In my case, "Enable Alt field" was checked for me by default, but I had to check "Enable Title field" in order to get the alt text field to show up on the node add/edit form. Weird.