Last active
October 13, 2016 09:35
-
-
Save ingozoell/9892909 to your computer and use it in GitHub Desktop.
WordPress head.php (Meta) Doctype
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Alternate without "404.php" if(is_404()) {header('Location: ' . esc_url(home_url('/')), true, 301);} ?> | |
<!doctype html> | |
<!--[if lt IE 7]> <html <?php body_class( 'no-js ie6 ie6-7 oldie' ); ?> <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 7]> <html <?php body_class( 'no-js ie7 ie6-7 oldie' ); ?> <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 8]> <html <?php body_class( 'no-js ie8 oldie' ); ?> <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 9 ]> <html <?php body_class( 'no-js ie9' ); ?> <?php language_attributes(); ?>> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> <html <?php body_class( 'no-js' ); ?> <?php language_attributes(); ?>> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title> | |
<!-- <title><?php wp_title(''); ?></title> --> | |
<?php // Webmaster Verifications (Google, Bing) ?> | |
<meta name="google-site-verification" content="xxxxx"/> | |
<meta name="msvalidate.01" content="xxxxx"/> | |
<?php // Google profiles or Yoast SEO Plugin with other features ?> | |
<link rel="author" href="https://plus.google.com/xxxxx"/> | |
<link rel="publisher" href="https://plus.google.com/xxxxx"/> | |
<?php // Specially for Mobile Devices ?> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"> | |
<meta http-equiv="cleartype" content="on"> | |
<?php // Icons/Favicons (for more: http://www.jonathantneal.com/blog/understand-the-favicon/) ?> | |
<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/images/icons/apple-icon-touch.png"> | |
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/images/icons/favicon.png"> | |
<!--[if IE]><link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico"><![endif]--> | |
<?php // or, set /favicon.ico for IE10 win ?> | |
<meta name="msapplication-TileColor" content="#f01d4f"> | |
<meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/images/icons/win8-tile-icon.png"> | |
<!--[if IE]><meta http-equiv="imagetoolbar" content="false"><![endif]--> | |
<?php // wordpress head functions ?> | |
<?php wp_head(); ?> | |
<?php // end of wordpress head ?> | |
<?php // drop Google Analytics Here ?> | |
<?php // end analytics ?> | |
</head> | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment