Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I edit the alt tag? I just did an SEO check and found the alt tags for my facebook and linked in icons are not there. The Title tags are fine but no alt tags. Thanks
Comments
Comment #1
jenlamptonI think you just caught a bug! :) The alt was supposed to be the same as the title, but it looks like instead the title got set twice. I've committed a fix to the latest dev release and it will be included in the next release.
To answer your question about how to override the alt text, you can update to the latest dev version and override the function theme_on_the_web_icon(). In there you will see the values that are being passed to theme_image, including ALT.
Before a recent change to the theme functions, overriding the alt text would have been pretty hard, so if you need to override it, please use the dev version until the next release comes out.