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
|
@ -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 );
|
||||
|
@ -184,3 +187,5 @@ function wp_get_attachment_image_url( $id, $size = 'full', $attrs = [] )
|
|||
|
||||
return $image[0];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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(); ?>
|
||||
|
|
Loading…
Reference in New Issue