Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Created July 9, 2012 12:09
Show Gist options
  • Save jameshibbard/3076112 to your computer and use it in GitHub Desktop.
Save jameshibbard/3076112 to your computer and use it in GitHub Desktop.
Sample header file for WordPress site
<!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="text/html; charset=utf-8" />
<title><?php wp_title('|', 1, 'right'); ?> <?php bloginfo('name'); ?></title>
<link rel="Stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css" />
<?php wp_head(); ?>
</head>
<body>
<div class="container">
<div class="header">
<h1><?php bloginfo('name'); ?></h1>
</div> <!-- end .header -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment