Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
footer.php1:01 with Zac Gordon
In this video we examine the footer.php file as well as the common functions you will want to include with it.
The first important thing to do in the footer.php file, is make sure that
you're closing any markup that was open in the header.php file.
Since you're opening things in the header that aren't getting
closed in the main templates you need to make sure that gets closed in the footer.
Then you can add whatever footer code you would like.
In this case we have a hard coded message in our footer.
However you can easily add a widget or
whatever piece of content you feel suits the footer best.
Like the header.php file, we also have a special function that gets put in
that allows plugins and Wordpress to output code at this point in our theme.
Again, inside of other templates it's the function
get_footer that calls the footer.php file to come into play.
You need to sign up for Treehouse in order to download course files.Sign up