WordPress.org

Ready to get started?Download WordPress

Forums

Youtube Channel Plugin
Thumbnail Width Declaration Ignored (2 posts)

  1. starsunflower
    Member
    Posted 2 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>";

    http://wordpress.org/extend/plugins/youtube-channel-showcase/

  2. Amy
    Member
    Posted 1 year 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

About this Topic