Removed wp_title() from header and added theme support for title-tag (WordPress 4.4 update)
This commit is contained in:
parent
b6cb3bf3e6
commit
656977a440
3 changed files with 13 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue