Viewers: in countries Watching now:
If you're like me, when I see a new version of a framework I love, my first instinct is to upgrade my site by installing the new version of that library. With Bootstrap, that's extremely dangerous because so many things have changed in the code. This chapter, I'm going to review some of the issues you'll run into. When upgrading from Bootstrap two to Bootstrap three. In this movie, we'll just take a look at a Bootstrap 2.0 website, and then take look at the migrated Bootstrap 3.0 version. So let's take a look at what's on this page. This is a Bootstrap 2.0 website. You can sort of tell a little bit by the fact that it's got the nice menus right here.
We've got a drop down menu here. And we've got the carousel that works really well. And if we scroll down, we can see also there's a moto, if I click on one of these images, it darkens the background and it shows you this image. I can click to click that off. And we have, also, a collapse or an accordion menu right here. You can see that the buttons also have that gradient that Bootstrap two gives you. You can tell that some of these elements have icons, and those will actually change a little bit when we go to Bootstrap three.
So, let's go ahead and switch this to the Bootstrap three version. So I'm managing this website using something called Git. So what I can do in Git is just do a check out of a different branch, so I'm going to check out the Boostrap 3 branch. And there it goes and what it actually did, and it's that quick. It actually modify all the files on this website to be at a different place or almost like a different place in time, so if I refresh this site, you can see that this is the new Bootstrap 3.0 version. Looks super similar, there's a few things that I visually changed here.
But you can see that the menus are much flatter, they still work with the drop downs and the carousel looks a little bit different. You can see the new font icons it uses instead of the arrows it used to have. You can see the darkening of these buttons when you roll over them. And if you scroll down, you can see that the buttons are a lot flatter. The motiles look exactly the same, but if I click on these, you'll see that they're actually a lot bigger than before, which is one of the things I like about this Bootstrap. And everything else is pretty much the same. The buttons here are flatter, and you can't really tell, but instead of an icon right here, that's a PNG, it's actually using a font to display these icons.
So that's pretty cool. Everything else looks pretty much the same, and that's kind of the difference between how the sites look between versions two and three. There's a lot of things that are going on in the code right here that I have to modify, to make them look pretty similar. But overall, you're just going to notice visually, that the design is flatter, and some things change in functionality. Now, if you want to learn more about how to manage your sites with Git, make sure you check out Git Essential Training. Git is a really cool technology that lets you create different branches of things, and it might be really useful on something like this, because you may be able to just create a branch for how your website currently looks.
And then start another branch, that's your Bootstrap three transition, and then work on that without screwing up your original websites. If you're interested in learning how I put this website together using Git, Hiroku, and the new version of Bootstrap, watch for an upcoming course on Lynda.com. Which you'll be able to find in my author section of the website. As I mentioned before, you can see that visually not a lot has changed. But if you looked at the chapter on understanding changes in Bootstrap, you'll know that there's a lot of stuff that's different under the hood.
We'll start a migration of this site in our next movie.
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.