Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there.
I am trying to embed a Youtube video to a block using Bootstraps .embed-responsive-item class. The Text Format is set to Full HTML and jQuery versions 1.9.0 is enabled.
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen=""></iframe>
</div>
It’s working just fine on my static html version. However within Drupal the video canvas doesn’t use the full block dimension. What’s the correct way to embed full-size Youtube videos in a Drupal Bootstrap subtheme?
Comments
Comment #1
markhalliwellYou will need to make sure that you're using at least Bootstrap 3.2.0 or higher (http://blog.getbootstrap.com/2014/06/26/bootstrap-3-2-0-released). 7.x-3.0 does not provided that version or higher via the CDN option. If you don't know how to compile your own Bootstrap source, then you will have to download the latest dev or beta of this base theme to get the CDN version you need.
Comment #2
Marcin Maruszewski CreditAttribution: Marcin Maruszewski commentedI'm using latest Bootstrap but when I use snippet shown abowe nothing happens. I discovered that
@import "../bootstrap/less/responsive-embed.less";
is missing in starterkit/less/bootstrap.less
Comment #3
Marcin Maruszewski CreditAttribution: Marcin Maruszewski commentedComment #4
markhalliwellThen add it. This is still "works as designed" since developers are the ones responsible for keeping parity with a future version.