Support » Plugin: Youtube Channel Gallery » Styling iframe impossible

  • choibc


    Hi, I found I can’t apply my style to iframe of this plugin.
    $content = '<iframe id="ytcplayer' . $plugincount . '" class="ytcplayer" allowfullscreen width="' . $ytchag_video_width . '" height="' . $ytchag_video_heigh . '" src="' . $youtubeid . '?version=3' . $ytchag_theme . $ytchag_color . $ytchag_autoplay . $ytchag_rel . $ytchag_showinfo .'&enablejsapi=1&wmode=transparent" frameborder="0"></iframe>';

    Below is my intention to use Span12 class which is part of twitter bootstrap. Using bootstrap class, I can ensure youtube screen is automatically adjusted for browser size; mobile, PC and Mac. Could you provide options to add custom class?

    <div class="ytcshort"><iframe id="ytcplayer1" class="span12 clearfix ytcplayer" allowfullscreen width="640" height="360" src="

    Here is example:

    Thank you for great plugin in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • choibc


    I uploaded revised php file here.

    I just added new variables for iframe class.
    If you could consider to apply this change to your original code, I will appreciate.

    Plugin Author PoseLab


    Hi choibc

    I think I will not offer that option in the plugin because it would be very confusing to many users. You have a lot of classes in the html elements to modify the appearance of the plugin. I have the intention to make the plugin responsive.



    Hi, PoseLab.

    Thank you for the response.
    In my opinion, bootstrap framework is for responsive web. I understand that iFrame is difficult for repsonsive web. After simple change of class for iframe, I could make site responsive.
    Never mind my request. It is just a request for possible consideration.
    Thank you for wonderful plugin and have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling iframe impossible’ is closed to new replies.