WordPress.org

Ready to get started?Download WordPress

Forums

(MB) YouTube Widget
ALT or TITLE attribute missing (2 posts)

  1. EOSlover
    Member
    Posted 11 months ago #

    Update request!

    The plugin is not passing W3C validation because the thumbnail image does not have ALT or TITLE attribute. You could fix this easily by adding the same value you use for label in TITEL or ALT attribute.

    http://wordpress.org/plugins/mb-youtube-videos/

  2. EOSlover
    Member
    Posted 11 months ago #

    The solution would be to edit a current line to something like this:

    $output .= '<img src="' . $youtube_video['image']['mqdefault'] . '" title="' . $youtube_video['title'] . '" alt="' . $youtube_video['title'] . '" />';

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.