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' ) )
|
if ( function_exists( 'add_theme_support' ) )
|
||||||
{
|
{
|
||||||
|
// Add support for document title tag
|
||||||
|
add_theme_support( 'title-tag' );
|
||||||
|
|
||||||
// Add Thumbnail Theme Support
|
// Add Thumbnail Theme Support
|
||||||
add_theme_support( 'post-thumbnails' );
|
add_theme_support( 'post-thumbnails' );
|
||||||
add_image_size( 'custom-size', 700, 200, true );
|
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];
|
return $image[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<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">
|
<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="dns-prefetch" href="//google-analytics.com">
|
||||||
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>">
|
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>">
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
|
|
|
@ -466,6 +466,13 @@ a {
|
||||||
color: #444;
|
color: #444;
|
||||||
text-decoration: underline; }
|
text-decoration: underline; }
|
||||||
|
|
||||||
|
a[href^="tel"] {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
font-style: inherit; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rulers
|
* Rulers
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue