Archived topic
Alt tag bug in GP beta 2.0
3 replies · Started by forgemedia on December 3, 2017
I noticed in alpha.1 - 11/27/2017 that you "added alt tags." However, it doesn't appear that this is working correctly.
I have this on a staging site: https://staging-brianjackson.kinsta.com/blog/
You can see for example on that first blog post, the featured image shows up. The alt tag shows as "I’m Joining the WordPress Team at Kinsta"

However, in the media library I have clearly set the alt tag on this image to "Kinsta."

I also tried throwing GP 2 on a site that didn't have GP before and experienced the same issue. It appears that GP is pulling the title of the blog post for the alt tags, which is not ideal. This also occurs on the featured image inside the blog post as well.
Hi Brian,
Thanks for pointing this out! I did add the title of the post as the alt tag in order to improve accessibility. However, looking into the core function I see that WP uses the set alt tag automatically, so there's nothing the theme has to do. It would be nice to use the post title as a fallback in case the alt tag isn't set.
I'll get this fixed for the official GP 2.0 release.
Thank you!
Thanks Tom! Yes, I specifically set an ALT tag on all my images :) But fallback would be nice for those that forget.
Done! Thank you again :)