Hi,
ich weiß nicht, ob es das richtige Unterforum ist, aber ich probier es mal hier.
Seit Kurzem nutze ich SEO-Plugin Yoast SEO, weil ich Probleme mit dem Teilen von Links via Facebook hatte. Ist soweit auch alles prima, nur wird seitdem auf Google (Eingabe: "Prypjat Syndrome") immer der doppelte Titel angezeigt. (prypjatsyndrome.de) Ich weiß, dass dieses Phänomen ausschalten kann, indem man die header.php seines Template-Ordners nach dem Titel-tag durchwühlen muss und mit
ersetzen muss. Ich habe die Datei gerade geöffnet und fand aber genau jenen genannten tag schon. Habt ihr eine Idee, was ich entfernen muss?
Vielen Dank!
Hier meine header.php:
PHP
<?php
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]><html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]><html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]><html <?php language_attributes(); ?> class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1,<?php bloginfo( 'html_type' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php wp_title(); ?></title>
<?php wp_head() ?>
</head>
<body id="top" <?php body_class(); ?> >
<div id="branding" class="container clearfix">
<header id="header" role="banner">
<?php if ( 1 == themeit_option( 'top_search_form' ) ) : ?>
<div id="top-search">
<?php get_search_form(); ?>
</div>
<?php endif; // end search form check ?>
<?php
/**
* Primary Nav
*
*/
?>
<nav id="primary-nav" role="navigation">
<ul class="nav">
<?php
if ( has_nav_menu( 'primary-nav' ) ) : // Check if primary menu has been set in WP menu options
wp_nav_menu( array(
'theme_location' => 'primary-nav',
'container' => '',
'items_wrap' => '%3$s'
));
else :
wp_list_pages('title_li=');
/*
printf( '<li><a href="%1$s" title="%2$s">%3$s</a></li>',
esc_url( admin_url( 'nav-menus.php' ) ),
esc_attr__( 'Click here to setup your custom menu.', 'themeit' ),
esc_html__( 'Click here to setup your custom menu.', 'themeit' )
);
*/
endif;
?>
<?php
/* Social Bartender Integration */
if( function_exists( 'social_bartender' ) ){
social_bartender( '<li class="menu-item menu-item-social-bartender">', '</li>' );
}
?>
</ul>
</nav><!-- #primary-nav -->
</header><!-- #header -->
</div><!-- #branding -->
<hgroup id="site-info" class="container clearfix" role="banner">
<?php
$blog_info = get_bloginfo( 'name' );
$logo_url = themeit_option( 'logo_url' );
$site_title_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
<<?php echo $site_title_tag; ?> id="site-title">
<a class="<?php echo ( $logo_url ) ? 'image-logo' : 'text-logo' ?>" href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( $blog_info ); ?>" >
<?php if ( $logo_url ) : ?>
<img src="<?php echo esc_url( $logo_url ); ?>" alt="<?php esc_attr_e( 'Logo', 'themeit') ?>" />
<?php else : ?>
<?php echo esc_html( $blog_info ) ?>
<?php endif; // end text logo check ?>
</a>
</<?php echo $site_title_tag; ?>><!-- #site-title -->
<?php if( themeit_option( 'text_logo_desc' ) ) : ?>
<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php endif; ?>
</hgroup><!-- .site-info -->
<div id="main" class="container clearfix">
Alles anzeigen