WordPress.org

Forums

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

  1. EOSlover
    Member
    Posted 1 year 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 1 year 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'] . '" />';

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • (MB) YouTube Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.