CHAPTER 4 • WordPress Theme Essentials 73
Blog Title
Description from blog settings
Now, this won’t do — you need some WordPress functions in there to make it work as
intended. Theoretically, if you just wanted a functional theme, adding wp_head()
would do, but obviously, you’ll want some more stuff than that.
Starting with the head part of this particular code, you want to make sure that WordPress
knows the correct character set, that the right title is printed depending on where on the
site the visitor is, that you include the style sheet correctly, that there is a pingback URL for
blog-to-blog communication, that you load the necessary JavaScript, and that you have
wp_head() last in the head. So with that in mind, here’s the head part of the code, with
all these things added:
<!DOCTYPE HTML>
<html <?php language_attributes(); ?>>