Youtube Channel Plugin
Thumbnail Width Declaration Ignored (2 posts)

  1. starsunflower
    Posted 3 years ago #

    Hello! A friend would like to use this plugin so I thought I would give it a whirl in a sandbox WP installation. The showcase width works but the thumbnail_width does not. When the width specified at "200" in the shortcode, the thumbnail displays at 478x300 on the page. I added .youtubechannelEntry {height: 200px; width: 200px !important;} to the stylesheet and get no response, although I do get response for the height.

    In the html being rendered, there's a / in the width of the img src. This is what it looks like:

    <img src="http://i.ytimg.com/vi/D73waEoPKy8/0.jpg" width="200/"/>

    I tried to find where this could be being generated in the PHP but am not sure. I'm not super familiar with the single quotes and double quotes syntax or preg_replace.

    Line 75

    $entries_output .= "<img src='" . $thumbnail . "' width=" . $thumbnail_width . "/>";
          if ($showcase != '') { $entries_output .= "</a>"; }
          $entries_output .= "</div>";


  2. Amy
    Posted 3 years ago #

    Hi starsunflower,

    I was having the same issue. I am not sure what is causing the widths to be so large.

    You were close with your:

    .youtubechannelEntry {height: 200px; width: 200px !important;}

    Change it to:

    .youtubechannelEntry img{height: 200px; width: 200px !important;}

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Youtube Channel Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic