Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Migrating to the new version

From: Bootstrap 3: New Features and Migration

Video: Migrating to the new version

So, now it's time to install the new version of Bootstrap. If you're following along with my previous movie, you'll know that this is the Bootstrap 3.0 version of my website, and that I'm managing everything with Git. So, the first thing I need to do is switch to the right branch. So, I'm going to do a Git checkout, and check out my Bootstrap 2 branch and switch back over here and refresh. And this is the Bootstrap 2 version of the website. So the next thing we need to do is actually create a new branch. So, this is the way that I manage my projects and it's definitely something you may want to look into. I'm using a virtual control system called Git, and if you want to learn how to use that, we've got a great course called Git Essential Training with Kevin Skoglund, be sure you check that out.

Migrating to the new version

So, now it's time to install the new version of Bootstrap. If you're following along with my previous movie, you'll know that this is the Bootstrap 3.0 version of my website, and that I'm managing everything with Git. So, the first thing I need to do is switch to the right branch. So, I'm going to do a Git checkout, and check out my Bootstrap 2 branch and switch back over here and refresh. And this is the Bootstrap 2 version of the website. So the next thing we need to do is actually create a new branch. So, this is the way that I manage my projects and it's definitely something you may want to look into. I'm using a virtual control system called Git, and if you want to learn how to use that, we've got a great course called Git Essential Training with Kevin Skoglund, be sure you check that out.

So, what I want to do here is actually go through and create a separate branch and I'm going to call this branch bt2migration. So what I want to do now is check out this version of the website, so that any changes that I made will be made under this new branch. And I'll leave my Bootstrap 2 branch alone just in case I want to revert back to the original version of that branch. So I'll do git checkout, and then do bt2migration, and that should check me out to the new branch. If I do git branch, I can see all the branches of my project and I've got a bootstrap2 branch, a bootstrap3, and a bt2migration branch which is where I'm on.

Next thing I will do is, go to the Bootstrap website and click on this Download Bootstrap link. Now, you can install Bootstrap in a number of different ways. If you go to Getting started, it's going to show all the different ways you can download Bootstrap maybe using the original less files or using CDNs now with the new version of Bootstrap, but the easiest way to download is just to go to the top of the site and then click on Download Bootstrap. Now, what that will do is it'll give you a folder with three different folders inside it. Now, this is a little bit different than before. It's going to give you a css folder, a js folder, as well as a fonts folder.

Before, we used to have an img folder. So what I need to do is copy the fonts folder to the same place that my css and js folder are. Now, before, we used to have this img. You can get rid of it if you want to. I'm going to leave it there. It's not really hurting anything. For production, I might go ahead and delete it before I publish everything. So I'm going to grab this fonts folder and put it right here. Then I'm going to open up the js and css files. I usually use the minified versions of these files, so I'll delete the regular versions and rename these bootstrap.css and bootstrap.js.

And then I'm going to copy them into the folders with the current versions of those files. That means that I'm going to replace the JavaScript and the CSS from Bootstrap, so this is going to modify the way my site looks. Let's go ahead and do that. I'll drag this in here, and yes, I do want to replace. And then I will drag this one right here into the js folder, and yes, I do want to replace. And awesome. We are done with that part, so let me go ahead and switch back to my website, and I'll refresh, and we'll see what happens.

And, at this point, you're probably thinking either, Dear Lord, what have I done? My website is all screwed up. My columns are gone. Everything is gone. Or the other reaction you may have is, well, since I watched the rest of the movies in this course, I knew that some of this was coming. So this isn't that bad. It, the site looks pretty good, carousel looks a little different, the arrows don't quite look well, but they actually work. Like, if you click on these, you can see that the carousel itself is still working just fine. Let's check on the motiles, I'll click on one of these. sort of working, so we definitely have some work to do there.

I'm going to refresh the page, and if you click on these collapse menus, the accordions, they seem to be working just fine. So, that's actually pretty cool. I'll click on this full schedule thing, and these are mostly working. So, a lot of the JavaScript you'll find is going to work just fine. The buttons, actually, are working pretty well. Some of the styles are going to have to be redone, but overall, this isn't too bad. At least, it wasn't as bad as what I expected would happen when I just upgraded the library, based on what I had read about the new changes.

So we've got a good starting point, what we need to do now is focus on individual updates that we have to perform to the HTML to make this transition properly to the new version of Bootstrap.

Show transcript

This video is part of

Image for Bootstrap 3: New Features and Migration
Bootstrap 3: New Features and Migration

21 video lessons · 5338 viewers

Ray Villalobos
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Bootstrap 3: New Features and Migration.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.