Problem with the alt tag of the image
I’ve discovered a possible problem with this plugin. The problem is determined by the alt tag attributed to image. Instead of the normal “alt” of the image, the plugin adds the title of the post as alt tag.
If you have a long post title, the alt of the image will be very long. This can determine some SEO problems (can be interpreted as keyword stuffing).
The code that must be replaced is this one:
<img alt="' . $title . '" src="' . $url . '" width="' . $width . '" height="' . $height . '" ';
with this one
<img alt="' . $alt . '" src="' . $url . '" width="' . $width . '" height="' . $height . '" ';
However, I’m not a php expert and the code doesn’t work. I mean… the alt remains empty and I don’t know how to make it to take the alt tag in the empty field.
Do you have a solution? Can you help me?
- The topic ‘Problem with the alt tag of the image’ is closed to new replies.