Starter Guide On Header.php

Ravael Angeline has a tutorial posted on that covers the basics of a header.php file. This particular file is located in every WordPress theme and is essential to how a theme works. Also worthy of reading following the tutorial is a comment by Tom McFarlin.

One response to “Starter Guide On Header.php”

  1. This is more like “Ancient History” Starter Guide on header.php ;)

    wp_register_script and wp_register_styles are not recommended nor best practice guide, it should be wp_enqueue_script only e.g.

    function my_custom_script() {
    wp_enqueue_script( ‘custom-scripts’, get_template_directory_uri() . ‘/js/custom-scripts.js’, ‘jquery’, ’1.0′, false );
    add_action( ‘wp_enqueue_scripts’, ‘my_custom_script’ );

    and this doesn’t need to be registered at all.

    Another example:



Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

%d bloggers like this: