Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 6eafe4d

Browse files
author
yoarts
committed
Merge pull request #3 from ashfame/not_mess_with_title
Not do anything with title, SEO is best handled by WordPress SEO by Yoast
2 parents 8a2313c + 2b8e3a3 commit 6eafe4d

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

functions.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,6 @@ function flat_paging_nav() {
8888
<?php
8989
}
9090

91-
function flat_wp_title( $title, $sep ) {
92-
global $paged, $page;
93-
94-
if ( is_feed() )
95-
return $title;
96-
97-
$title .= get_bloginfo( 'name' );
98-
99-
$site_description = get_bloginfo( 'description', 'display' );
100-
if ( $site_description && ( is_home() || is_front_page() ) )
101-
$title = "$title $sep $site_description";
102-
103-
if ( $paged >= 2 || $page >= 2 )
104-
$title = "$title $sep " . sprintf( __( 'Page %s', 'flat' ), max( $paged, $page ) );
105-
106-
return $title;
107-
}
108-
add_filter( 'wp_title', 'flat_wp_title', 10, 2 );
109-
11091
if ( ! function_exists( 'flat_post_nav' ) ) :
11192
function flat_post_nav() {
11293
global $post;

header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="<?php bloginfo( 'charset' ); ?>" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title><?php wp_title( '~', true, 'right' ); ?></title>
6+
<title><?php wp_title(''); ?></title>
77
<link rel="profile" href="http://gmpg.org/xfn/11" />
88
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
99
<?php wp_head(); ?>

0 commit comments

Comments
 (0)