Skip to content

Instantly share code, notes, and snippets.

@ivanteoh
Created July 5, 2020 03:55
Show Gist options
  • Save ivanteoh/6ccc4ce6ddadac690c5e4215e8afa9f2 to your computer and use it in GitHub Desktop.
Save ivanteoh/6ccc4ce6ddadac690c5e4215e8afa9f2 to your computer and use it in GitHub Desktop.
WordPress Theme Development 3 - Header
<?php
/**
* @package WordPress
* @subpackage Your_Theme
*/
?>
<!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" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<title><?php wp_title('&laquo;', true, 'right'); ?>
<?php bloginfo('name'); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>;
charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php bloginfo('name'); _e(' - ');
if ( is_single() ) {
single_post_title('', true);
} else {
bloginfo('description');
} ?>" />
<link rel="stylesheet" type="text/css" href="<?php
bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php
bloginfo('name'); ?> Blog RSS Feed" href="<?php
bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<h1><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p><?php bloginfo('description'); ?></p>
<!-- end header -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment