Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
So I went into the documentation for Bootstrap and here's Bootstrap 2.3. You'll see how you make a modal right here on this code. Now, if I go to Bootstrap 3, you'll see a similar piece of code, but there is one very important different. So I don't know if you can see what it is, but look at 2 and look at 3, and let's go back to 2, and I'll show you where it is. It's right here. In Bootstrap 2.3, you used to add an additional class to your modal to make sure that it hides whenever the page loads. You don't have to do that with the new version of Bootstrap.
There's nothing that really says that in here that you're not supposed to put that class, but it's just the way that it works. So that was a superdifficult problem to find. So now that I know that, all I have to do is go into my code and find a section that has the modal code, and that is in this header.php section. So I'm going to open that up. It's in components, php and it's called header.php. And, if you look at my code for the modal right here, you'll see that it has that additional hide class, which I don't need for the new version of Bootstrap. One thing that I do have to mention is that you may notice that we're missing a lot of the code that normally would go in a modal.
All I really need for mine was the modal body. If you don't put these two divs, then you're not going to get that little white border that it would normally give you and the image come out a lot bigger which is something that I really liked. So this is not the only place that this happens. What you may want to do when updating your sites is look for other places in your code where you're using the hide class.
There are currently no FAQs about Bootstrap 3: New Features and Migration.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.