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];
}
}