Footer Partial

Here, we'll move our footer code to a separate partial file called footer.php and include it into our index using the get_footer() function.

wp-content/themes/customtheme/index.php

<?php get_footer(); ?>

wp-content/themes/customtheme/footer.php

<?php wp_footer(); ?>
    </body>
</html>