Skip to content

Instantly share code, notes, and snippets.

@florianbrinkmann
Created March 13, 2017 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florianbrinkmann/8204d2f19e11bed06e914919316c195f to your computer and use it in GitHub Desktop.
Save florianbrinkmann/8204d2f19e11bed06e914919316c195f to your computer and use it in GitHub Desktop.
<?php
/**
* Header template
*
* @version 1.0.3
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open() ) { ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php }
wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper">
<a class="screen-reader-text" href="#main"><?php _e( '[Skip to Content]', 'rindby' ); ?></a>
<header id="branding" role="banner">
<?php if ( is_front_page() && is_home() ) { ?>
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
<?php } else { ?>
<p class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</p>
<?php }
$description = get_bloginfo( 'description' );
if ( $description != "" ) {
printf( '<p class="site-description">%1$s</p>', $description );
}
wp_nav_menu( array(
'theme_location' => 'header-menu',
) ); ?>
</header>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment