WordPress.org

Ready to get started?Download WordPress

Forums

Video Thumbnails
[resolved] Bigger thumbnail images for featured post slider (4 posts)

  1. stl99
    Member
    Posted 1 year ago #

    Hi there and thanks for the plugin!

    I'm using a featured post slider with a 620px width on my home page but the images from your plugin aren't wider than 480px . My size settings for the featured image are add_image_size( 'featured', 700, 426, true ); so that shouldn't be the problem.

    Any idea how to create bigger thumbnails...?

    Any help would be highly apprciated!

    Cheers,
    Thomas

    http://wordpress.org/extend/plugins/video-thumbnails/

  2. stl99
    Member
    Posted 1 year ago #

    Solved! In case anyone else is looking for bigger YouTube thumbnails:

    In video-thumbnails.php of the plugin change this

    // If we've found a YouTube video ID, create the thumbnail URL
    if ( isset( $matches[1] ) ) {	$youtube_thumbnail = 'http://img.youtube.com/vi/' . $matches[1] . '/0.jpg';

    to this

    // If we've found a YouTube video ID, create the thumbnail URL
    if ( isset( $matches[1] ) ) {	$youtube_thumbnail = 'http://img.youtube.com/vi/' . $matches[1] . '/maxresdefault.jpg';
  3. Sutherland Boswell
    Member
    Plugin Author

    Posted 1 year ago #

    I'd like to point out that maxresdefault.jpg doesn't always exist, so the next version has a check to see if it exists then falls back to a smaller size.

  4. stl99
    Member
    Posted 1 year ago #

    Thanks Sutherland, didn't know that...

    Cheers,
    Thomas

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.