WordPress Theme Step By Step Tutorial - Part 20: So far, we have never talked about title in Header HTML. So that why, our title always "Untitled Document". In this post, we will add line code that show title.
Open "header.html". Update like following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
</head>
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<body>
<div id="container">
<div id="header">
<div id="header_title">
<? bloginfo('name') ?>
</div>
<div id="header_subtitle">
<? bloginfo('description') ?>
</div>
</div>
<div class="separator">
</div>
The result may look like this: