Bummer! This is just a preview. You need to be signed in with a Treehouse account to view the entire video.
Revisit Our Default Index.php Template0:57 with Zac Gordon
Revisit Our Default Index.php Template
Now that we have all of our basic pages done,
let's come back in and look at our index.php file.
We can see that this was the first thing that we
copied over, and it still has all of our default content.
It's a good idea that you make your index.php file as flexible as possible.
However, for our case, what we're going to do is simply copy the contents of
page.php and paste it into index.php.
This will at least give us a generic loop, an if statement, and a basic sidebar.
That should be pretty flexible for stuff that we
may potentially not have planned for ahead of time.
This also leads into the discussion of how
you can use these various templates to create all
sorts of custom templates that we haven't covered here,
but are possible by using Bootstrap and WordPress together.
You need to sign up for Treehouse in order to download course files.Sign up