Complete the code to include the theme's header in a WordPress template.
<?php [1]('header'); ?>
The get_header() function loads the header.php file from the active theme, controlling the page's presentation.
Complete the code to display the site title using the theme's function.
<h1>[1]();</h1>the_title() which is for posts, not site titleThe bloginfo() function outputs information about the site, including the title, as controlled by the theme.
Fix the error in the code to properly enqueue a theme stylesheet.
<?php wp_enqueue_style([1], get_template_directory_uri() . '/style.css'); ?>
The first argument to wp_enqueue_style() must be a string handle enclosed in quotes, like 'theme-style'.
Fill both blanks to register and enqueue a theme script properly.
<?php wp_register_script([1], get_template_directory_uri() . '/js/script.js', array('jquery'), null, true); wp_enqueue_script([2]); ?>
The script handle 'theme-script' is used both to register and enqueue the script, linking it to the theme's presentation.
Fill all three blanks to create a custom page template header in a theme file.
<?php /* Template Name: [1] Description: [2] */ get_header([3]); ?>
The template name and description define the custom page template. The get_header('custom') loads the header-custom.php file controlling the presentation.