Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZach Allan
19,452 PointsFor anyone having an issue with the Video Modal....
When I first added the HTML for the Video Modal and previewed the site, the video came up as a square and wouldn't display properly. After tweaking for a while I figured out a solution:
Go back to Bootstrap Customize, upload your config.json file for the previous settings when you last downloaded a Custom Bootstrap a few videos ago. Add "Responsive Embed". Re-Compile and Download. Replace your old bootstrap.min.css and bootstrap.css with your new one in your CSS folder.
Use this code for the video modal:
<!-- Video Modal -->
<div class="modal fade" id="videoModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Learn how to make this app!</h4>
</div>
<div class="modal-body">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="http://www.youtube.com/embed/hTf0CgRC1_Q"></iframe>
</div>
</div>
</div>
</div>
</div><!-- End Video Modal -->
This uses Bootstrap's Responsive Embed component.(www.getbootstrap.com/components/#responsive-embed)
2 Answers
Alex De Angelis
8,882 PointsAmazing! This fixed the issue straight away. Thanks!
Tim Acker
Front End Web Development Techdegree Graduate 31,247 PointsNice catch. This section of the course was good until near the end when topics were rushed and key instructions were overlooked.