Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More SEO fixes.

  • Loading branch information...
commit 579b33fa6b8956299275ba326e4c8b916190a84e 1 parent f790c31
@zamoose authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 header.php
View
22 header.php
@@ -20,25 +20,25 @@
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php
// Head that nasty "duplicate content" Google "feature" off at the pass.
-if((is_single() || is_category() || is_page() || is_home()) && (!is_paged())){
-?>
+ if((is_single() || is_category() || is_page() || is_home()) && (!is_paged())){
+ ?>
<!-- ok google, index me! -->
-<?php
-}else{
-?>
+ <?php
+ }else{
+ ?>
<!-- google, please ignore - thanks! -->
<meta name="robots" content="noindex,follow">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<?php
-}
-?>
- <title><?php if(is_search()) { echo "Search Results &raquo; "; } else { wp_title('&raquo;', true, 'right'); } ?> <?php bloginfo('name');?></title>
-
<?php
+ }
+
if ( class_exists('All_in_One_SEO_Pack') || class_exists('HeadSpace_Plugin') || class_exists('Platinum_SEO_Pack') || class_exists('wpSEO') || defined('WPSEO_VERSION') ) {
-
+ ?>
+ <title><?php wp_title(''); ?></title>
+ <?php
} else {
?>
+ <title><?php if(is_search()) { echo "Search Results &raquo; "; } else { wp_title('&raquo;', true, 'right'); } ?> <?php bloginfo('name');?></title>
<meta name="description" content="<?php bloginfo('description'); ?>" />
<?php
}
Please sign in to comment.
Something went wrong with that request. Please try again.