Complete the code to include the header template in a WordPress theme.
<?php [1]('header'); ?>
The get_header() function loads the header.php template in a WordPress theme.
Complete the code to include the footer template in a WordPress theme.
<?php [1]('footer'); ?>
The get_footer() function loads the footer.php template in a WordPress theme.
Fix the error in the code to properly load a custom header named 'custom-header'.
<?php get_header([1]); ?>The parameter must be a string in quotes to specify the custom header template file like header-custom-header.php.
Fill both blanks to register and enqueue a custom stylesheet for the header in WordPress.
<?php
function custom_header_styles() {
wp_enqueue_style([1], get_template_directory_uri() . '/css/[2].css');
}
add_action('wp_enqueue_scripts', 'custom_header_styles');
?>Use a string handle in quotes for the style name and the matching CSS file name as a string inside the path.
Fill all three blanks to create a custom footer function hooked to 'wp_footer' that outputs a copyright message.
<?php function [1]() { echo '<p>© ' . date([2]) . ' My Website</p>'; } add_action([3], '[1]'); ?>
The function name is custom_footer_message, the date format is 'Y' for the year, and the hook is 'wp_footer'.