Next, we will create the footer file. You can do so in the following steps:
- Cut out everything at the very bottom of the index.php file from the following code:
</div><! - #content - >
<footer id="colophon" class="site-footer" role="contentinfo">
- Cut all the way through to the </html> tag. Paste the text you just cut into a new footer.php file. Save it in your theme directory.
- Now, at the very bottom of the index.php file (from where you just cut the footer text), type in the following line of WordPress PHP code:
<?php get_footer(); ?>
- This is a special WordPress function that includes the footer.php file you just created. Again, you should save everything and reload your website to make sure nothing changes.