Removed wp_title() from header and added theme support for title-tag (WordPress 4.4 update)

This commit is contained in:
Pedro Reis 2015-10-23 10:00:28 +01:00
parent b6cb3bf3e6
commit 656977a440
3 changed files with 13 additions and 2 deletions

View File

@ -14,6 +14,9 @@ require_once 'functions/example.php';
if ( function_exists( 'add_theme_support' ) )
{
// Add support for document title tag
add_theme_support( 'title-tag' );
// Add Thumbnail Theme Support
add_theme_support( 'post-thumbnails' );
add_image_size( 'custom-size', 700, 200, true );
@ -183,4 +186,6 @@ function wp_get_attachment_image_url( $id, $size = 'full', $attrs = [] )
$image = wp_get_attachment_image_src( $id, $size, $attrs );
return $image[0];
}
}

View File

@ -4,7 +4,6 @@
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title><?php wp_title( '' ); ?></title>
<link rel="dns-prefetch" href="//google-analytics.com">
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>">
<?php wp_head(); ?>

View File

@ -466,6 +466,13 @@ a {
color: #444;
text-decoration: underline; }
a[href^="tel"] {
color: inherit;
text-decoration: none;
font-family: inherit;
font-size: inherit;
font-style: inherit; }
/**
* Rulers
*/