Title: Styling iframe impossible
Last modified: August 20, 2016

---

# Styling iframe impossible

 *  [choibc](https://wordpress.org/support/users/choibc/)
 * (@choibc)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/styling-iframe-impossible/)
 * 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="http://www.
   youtube.com/embed/' . $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="
       ...></div>
       ```
   
 * Here is example: [http://montgomerykmc.org/latest-praise/](http://montgomerykmc.org/latest-praise/)
 * Thank you for great plugin in advance.
 * [http://wordpress.org/extend/plugins/youtube-channel-gallery/](http://wordpress.org/extend/plugins/youtube-channel-gallery/)

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

 *  Thread Starter [choibc](https://wordpress.org/support/users/choibc/)
 * (@choibc)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/styling-iframe-impossible/#post-3431877)
 * I uploaded revised php file here.
 * [http://montgomerykmc.org/wp-content/pub/youtube-channel-gallery-revised.zip](http://montgomerykmc.org/wp-content/pub/youtube-channel-gallery-revised.zip)
 * 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](https://wordpress.org/support/users/javitxu123/)
 * (@javitxu123)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/styling-iframe-impossible/#post-3432036)
 * 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.
 *  Thread Starter [choibc](https://wordpress.org/support/users/choibc/)
 * (@choibc)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/styling-iframe-impossible/#post-3432041)
 * Hi, PoseLab.
 * Thank you for the response.
    In my opinion, bootstrap framework [http://twitter.github.com/bootstrap](http://twitter.github.com/bootstrap)
   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.

 * ![](https://s.w.org/plugins/geopattern-icon/youtube-channel-gallery_f11a1f.svg)
 * [Youtube Channel Gallery](https://wordpress.org/plugins/youtube-channel-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-channel-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-channel-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-channel-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-channel-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-channel-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [choibc](https://wordpress.org/support/users/choibc/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/styling-iframe-impossible/#post-3432041)
 * Status: not resolved