Ask your WordPress questions! Pay money and get answers fast! (more info)

Double title in Tab WordPress

  • SOLVED

Hello -

I have a site that is displaying a double title in the tab for every page except the home page and the blog page. I'm sure it has something to do with the header.php file, but I can't figure out how to change it.

Can someone help? Thanks!

http://www.brooksann.com/about-2/


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head>

<meta http-equiv="Content-Type"
content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title>
<?php if (is_home() || is_front_page()) {
if(pex_text('_seo_home_title')){
echo pex_text('_seo_home_title').' '.get_opt('_seo_serapartor').' ';
}
echo bloginfo('name');
} elseif (is_category()) {
echo pex_text('_seo_category_title'); wp_title('&laquo; '.get_opt('_seo_serapartor').' ', TRUE, 'right');
echo bloginfo('name');
} elseif (is_tag()) {
echo pex_text('_seo_tag_title'); wp_title('&laquo; '.get_opt('_seo_serapartor').' ', TRUE, 'right');
echo bloginfo('name');
} elseif (is_search()) {
echo pex_text('_search_tag_title');
echo the_search_query();
echo '&laquo; '.get_opt('_seo_serapartor').' ';
echo bloginfo('name');
} elseif (is_404()) {
echo '404 '; wp_title(' '.get_opt('_seo_serapartor').' ', TRUE, 'right');
echo bloginfo('name');
} else {
echo wp_title(' '.get_opt('_seo_serapartor').' ', TRUE, 'right');
echo bloginfo('name');
} ?>
</title>

<!-- Description meta-->


<?php if(get_opt('_seo_keywords')){ ?>
<!-- Keywords-->
<meta name="keywords" content="<?php echo get_opt('_seo_keywords'); ?>" />
<?php } ?>

<?php
//remove SEO indexation and following for the selected archives pages
if(is_archive() || is_search()){
$pages=pex_get_multiopt('_seo_indexation');
if((is_category() && in_array('category', $pages))
|| (is_author() && in_array('author', $pages))
|| (is_tag() && in_array('tag', $pages))
|| (is_date() && in_array('date', $pages))
|| (is_search() && in_array('search', $pages))){ ?>
<!-- Disallow contain indexation on this page to remove duplicate content problems -->
<meta name="googlebot" content="noindex,nofollow" />
<meta name="robots" content="noindex,nofollow" />
<meta name="msnbot" content="noindex,nofollow" />
<?php }
}
?>

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/nivo-slider.css" type="text/css" media="screen" charset="utf-8" />

<!--Google fonts-->
<?php if(get_opt('_enable_google_fonts')!='off'){
$fonts=pexeto_get_google_fonts();
foreach($fonts as $font){
?>
<link href='<?php echo $font; ?>' rel='stylesheet' type='text/css' />
<?php }
}
?>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php
$skin=get_opt('_theme_skin');
if($skin=='white'){
$lightbox_style="light_rounded";
?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/white-skin.css" type="text/css" media="screen" charset="utf-8" />
<?php }else{
$lightbox_style="dark_rounded";
if($skin=='dark_trnsparent'){
?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/dark-transparent-skin.css" type="text/css" media="screen" charset="utf-8" />
<?php }
}?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/cssLoader.php" type="text/css" media="screen" charset="utf-8" />
<link rel="shortcut icon" type="image/x-icon" href="<?php echo get_opt('_favicon'); ?>" />

<?php
$jsuri=get_template_directory_uri().'/js/';
wp_enqueue_script('jquery');

wp_enqueue_script("pexeto-main", $jsuri.'main.js');

$enable_cufon=get_opt('_enable_cufon');
if($enable_cufon=='on'){
if(get_opt('_custom_cufon_font')!=''){
$font_file=get_opt('_custom_cufon_font');
}else{
$font_file=get_template_directory_uri().'/js/fonts/'.get_opt('_cufon_font');
}
wp_enqueue_script("pexeto-cufon", $jsuri.'cufon-yui.js');
wp_enqueue_script("pexeto-cufon-font", $font_file);
}


if (is_page_template('template-portfolio-showcase.php')) {
//load the scripts for the portfolio template
wp_enqueue_script("pexeto-showcase", $jsuri.'portfolio-showcase.js');
}


if (is_page_template('template-grid-gallery.php')) {
//load the scripts for the portfolio gallery template
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-draggable');
wp_register_script("pexeto-desaturate", $jsuri.'desaturate.js');
wp_register_script("pexeto-iscroll", $jsuri.'iscroll.js');
wp_enqueue_script("pexeto-grid-gallery", $jsuri.'grid-gallery.js');
}

if(is_page_template('template-full-width-slideshow.php') || is_page_template('template-full-height-slideshow.php')){
wp_enqueue_script("pexeto-full-slideshow", $jsuri.'slideshow.js', array("jquery", "pexeto-main"));
}

wp_head(); ?>


<?php
$sociable_lightbox=get_opt('_sociable_lightbox')=='on'?'true':'false';
$logo_height=get_opt('_logo_height')||116;
$disable_right_click=get_opt('_disable_click')=='on'?'true':'false';
?>
<script type="text/javascript">
pexetoSite.ajaxurl="<?php echo admin_url('admin-ajax.php'); ?>";
pexetoSite.enableCufon="<?php echo $enable_cufon; ?>";
pexetoSite.lightboxStyle="<?php echo $lightbox_style; ?>";
<?php $desaturate=get_opt('_home_desaturate')=='off'?'false':'true'; ?>
pexetoSite.desaturateServices=<?php echo $desaturate; ?>;
pexetoSite.disableRightClick=<?php echo $disable_right_click; ?>;
pexetoSite.rightClickMessage="<?php echo str_replace("\r\n", "\\n", pex_text('_click_message')) ; ?>";
jQuery(document).ready(function($){
pexetoSite.initSite();
<?php if (is_page_template('template-grid-gallery.php')) { ?>
pexetoSite.setMenuSliderLink();
<?php } ?>
});
</script>



<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<!-- enables nested comments in WP 2.7 -->

<!--[if lte IE 7]>
<link href="<?php echo get_template_directory_uri(); ?>/css/style_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
</head>
<body <?php body_class(); ?>>
<?php

$bgimage = get_post_meta($post->ID, 'full_bg_value', true);
if(!$bgimage){
$bgimage=get_opt('_fullwidth_bg_image');
}
if($bgimage && !is_page_template('template-full-width-slideshow.php')){
?>
<?php if(get_opt('_bg_top_pattern')!='off'){?>
<div class="bg-image-pattern"></div>
<?php } ?>
<script type="text/javascript">
jQuery(document).ready(function($){
pexetoSite.setResizingBg("<?php echo $bgimage; ?>");
});
</script>
<?php } ?>

<div id="main-container">

<!--HEADER -->
<div id="header">
<div id="logo-container"><a href="<?php echo home_url(); ?>"></a></div>
<div class="clear"></div>
<div id="navigation-container">
<div id="menu-container">
<div id="menu">
<?php wp_nav_menu(array('theme_location' => 'pexeto_main_menu', 'fallback_cb'=>'pexeto_no_menu')); ?>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div id="navigation-line"></div>
</div> <!-- end #header -->

Answers (5)

2013-07-12

Navjot Singh answers:

Try enabling "Force Rewrite Titles" under Yoast SEO settings>Titles and Indexation Page.


ohlivia13 comments:

I tried this. Did not work.


Navjot Singh comments:

Change the code in between your <title></title> tag to this

<title>

<?php if (is_home() || is_front_page()) {

if(pex_text('_seo_home_title')){

echo pex_text('_seo_home_title').' '.get_opt('_seo_serapartor').' ';

}

echo bloginfo('name');

} elseif (is_category()) {

echo pex_text('_seo_category_title'); wp_title('&laquo; '.get_opt('_seo_serapartor').' ', TRUE, 'right');

} elseif (is_tag()) {

echo pex_text('_seo_tag_title'); wp_title('&laquo; '.get_opt('_seo_serapartor').' ', TRUE, 'right');

} elseif (is_search()) {

echo pex_text('_search_tag_title');

echo the_search_query();

echo '&laquo; '.get_opt('_seo_serapartor').' ';

echo bloginfo('name');

} elseif (is_404()) {

echo '404 '; wp_title(' '.get_opt('_seo_serapartor').' ', TRUE, 'right');

} else {

echo wp_title(' '.get_opt('_seo_serapartor').' ', TRUE, 'right');

} ?>

</title>


Navjot Singh comments:

Ok. Final. Change your title code to

<title><?php wp_title( '|', true, 'right' ); ?></title>

This removes all custom hacks on title tag and will let Yoast's plugin to set the title. Whatever you will set from plugin will be visible.


ohlivia13 comments:

It's STILL double. This is Crazy. ANy other thoughts?


Navjot Singh comments:

Can you PM me your blog's login details?


Navjot Singh comments:

Done. Check now.

2013-07-12

Sabby Sam answers:

The page seems to be 404 errors and also i didn't find where is double title appearing. Could you be more specific please ?


Sabby Sam comments:

Re-write your code with the below one in header .php

check my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>

<head>



<meta http-equiv="Content-Type"

content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />



<title>

<?php if (is_home() || is_front_page()) {

if(pex_text('_seo_home_title')){

echo pex_text('_seo_home_title').' '.get_opt('_seo_serapartor').' ';

}

echo bloginfo('name');

} elseif (is_category()) {

echo pex_text('_seo_category_title'); wp_title('&laquo; '.get_opt('_seo_serapartor').' ', TRUE, 'right');



} elseif (is_tag()) {

echo pex_text('_seo_tag_title'); wp_title('&laquo; '.get_opt('_seo_serapartor').' ', TRUE, 'right');



} elseif (is_search()) {

echo pex_text('_search_tag_title');

echo the_search_query();

echo '&laquo; '.get_opt('_seo_serapartor').' ';



} elseif (is_404()) {

echo '404 '; wp_title(' '.get_opt('_seo_serapartor').' ', TRUE, 'right');



} else {

echo wp_title(' '.get_opt('_seo_serapartor').' ', TRUE, 'right');


} ?>

</title>



<!-- Description meta-->





<?php if(get_opt('_seo_keywords')){ ?>

<!-- Keywords-->

<meta name="keywords" content="<?php echo get_opt('_seo_keywords'); ?>" />

<?php } ?>



<?php

//remove SEO indexation and following for the selected archives pages

if(is_archive() || is_search()){

$pages=pex_get_multiopt('_seo_indexation');

if((is_category() && in_array('category', $pages))

|| (is_author() && in_array('author', $pages))

|| (is_tag() && in_array('tag', $pages))

|| (is_date() && in_array('date', $pages))

|| (is_search() && in_array('search', $pages))){ ?>

<!-- Disallow contain indexation on this page to remove duplicate content problems -->

<meta name="googlebot" content="noindex,nofollow" />

<meta name="robots" content="noindex,nofollow" />

<meta name="msnbot" content="noindex,nofollow" />

<?php }

}

?>



<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/nivo-slider.css" type="text/css" media="screen" charset="utf-8" />



<!--Google fonts-->

<?php if(get_opt('_enable_google_fonts')!='off'){

$fonts=pexeto_get_google_fonts();

foreach($fonts as $font){

?>

<link href='<?php echo $font; ?>' rel='stylesheet' type='text/css' />

<?php }

}

?>



<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<?php

$skin=get_opt('_theme_skin');

if($skin=='white'){

$lightbox_style="light_rounded";

?>

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/white-skin.css" type="text/css" media="screen" charset="utf-8" />

<?php }else{

$lightbox_style="dark_rounded";

if($skin=='dark_trnsparent'){

?>

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/dark-transparent-skin.css" type="text/css" media="screen" charset="utf-8" />

<?php }

}?>

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/cssLoader.php" type="text/css" media="screen" charset="utf-8" />

<link rel="shortcut icon" type="image/x-icon" href="<?php echo get_opt('_favicon'); ?>" />



<?php

$jsuri=get_template_directory_uri().'/js/';

wp_enqueue_script('jquery');



wp_enqueue_script("pexeto-main", $jsuri.'main.js');



$enable_cufon=get_opt('_enable_cufon');

if($enable_cufon=='on'){

if(get_opt('_custom_cufon_font')!=''){

$font_file=get_opt('_custom_cufon_font');

}else{

$font_file=get_template_directory_uri().'/js/fonts/'.get_opt('_cufon_font');

}

wp_enqueue_script("pexeto-cufon", $jsuri.'cufon-yui.js');

wp_enqueue_script("pexeto-cufon-font", $font_file);

}





if (is_page_template('template-portfolio-showcase.php')) {

//load the scripts for the portfolio template

wp_enqueue_script("pexeto-showcase", $jsuri.'portfolio-showcase.js');

}





if (is_page_template('template-grid-gallery.php')) {

//load the scripts for the portfolio gallery template

wp_enqueue_script('jquery-ui-core');

wp_enqueue_script('jquery-ui-draggable');

wp_register_script("pexeto-desaturate", $jsuri.'desaturate.js');

wp_register_script("pexeto-iscroll", $jsuri.'iscroll.js');

wp_enqueue_script("pexeto-grid-gallery", $jsuri.'grid-gallery.js');

}



if(is_page_template('template-full-width-slideshow.php') || is_page_template('template-full-height-slideshow.php')){

wp_enqueue_script("pexeto-full-slideshow", $jsuri.'slideshow.js', array("jquery", "pexeto-main"));

}



wp_head(); ?>





<?php

$sociable_lightbox=get_opt('_sociable_lightbox')=='on'?'true':'false';

$logo_height=get_opt('_logo_height')||116;

$disable_right_click=get_opt('_disable_click')=='on'?'true':'false';

?>

<script type="text/javascript">

pexetoSite.ajaxurl="<?php echo admin_url('admin-ajax.php'); ?>";

pexetoSite.enableCufon="<?php echo $enable_cufon; ?>";

pexetoSite.lightboxStyle="<?php echo $lightbox_style; ?>";

<?php $desaturate=get_opt('_home_desaturate')=='off'?'false':'true'; ?>

pexetoSite.desaturateServices=<?php echo $desaturate; ?>;

pexetoSite.disableRightClick=<?php echo $disable_right_click; ?>;

pexetoSite.rightClickMessage="<?php echo str_replace("\r\n", "\\n", pex_text('_click_message')) ; ?>";

jQuery(document).ready(function($){

pexetoSite.initSite();

<?php if (is_page_template('template-grid-gallery.php')) { ?>

pexetoSite.setMenuSliderLink();

<?php } ?>

});

</script>







<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<!-- enables nested comments in WP 2.7 -->



<!--[if lte IE 7]>

<link href="<?php echo get_template_directory_uri(); ?>/css/style_ie7.css" rel="stylesheet" type="text/css" />

<![endif]-->



<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

</head>

<body <?php body_class(); ?>>

<?php



$bgimage = get_post_meta($post->ID, 'full_bg_value', true);

if(!$bgimage){

$bgimage=get_opt('_fullwidth_bg_image');

}

if($bgimage && !is_page_template('template-full-width-slideshow.php')){

?>

<?php if(get_opt('_bg_top_pattern')!='off'){?>

<div class="bg-image-pattern"></div>

<?php } ?>

<script type="text/javascript">

jQuery(document).ready(function($){

pexetoSite.setResizingBg("<?php echo $bgimage; ?>");

});

</script>

<?php } ?>



<div id="main-container">



<!--HEADER -->

<div id="header">

<div id="logo-container"><a href="<?php echo home_url(); ?>"></a></div>

<div class="clear"></div>

<div id="navigation-container">

<div id="menu-container">

<div id="menu">

<?php wp_nav_menu(array('theme_location' => 'pexeto_main_menu', 'fallback_cb'=>'pexeto_no_menu')); ?>

</div>

</div>

<div class="clear"></div>

</div>

<div class="clear"></div>

<div id="navigation-line"></div>

</div> <!-- end #header -->


Sabby Sam comments:

or just remove the echo bloginfo('name');

2013-07-12

Remy answers:

You can either use WordPress SEO by Yoast and force rewrite titles, or remove the echo bloginfo('name'); in the <title></title> markup


ohlivia13 comments:

I removed all of this, and it's still double :(

2013-07-12

Hariprasad Vijayan answers:

Hi,
You are printing title two times in each condition except home under title tag. remove one line from each condition.

2013-07-12

Abdelhadi Touil answers:

Hi.
Try tou use this code in your header.php file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title(''); ?></title>
<!-- Description meta-->
<?php if(get_opt('_seo_keywords')){ ?>
<!-- Keywords-->
<meta name="keywords" content="<?php echo get_opt('_seo_keywords'); ?>" />
<?php } ?>
<?php
//remove SEO indexation and following for the selected archives pages
if(is_archive() || is_search()){
$pages=pex_get_multiopt('_seo_indexation');
if((is_category() && in_array('category', $pages))
|| (is_author() && in_array('author', $pages))
|| (is_tag() && in_array('tag', $pages))
|| (is_date() && in_array('date', $pages))
|| (is_search() && in_array('search', $pages))){ ?>
<!-- Disallow contain indexation on this page to remove duplicate content problems -->
<meta name="googlebot" content="noindex,nofollow" />
<meta name="robots" content="noindex,nofollow" />
<meta name="msnbot" content="noindex,nofollow" />
<?php }
}
?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/nivo-slider.css" type="text/css" media="screen" charset="utf-8" />
<!--Google fonts-->
<?php if(get_opt('_enable_google_fonts')!='off'){
$fonts=pexeto_get_google_fonts();
foreach($fonts as $font){
?>
<link href='<?php echo $font; ?>' rel='stylesheet' type='text/css' />
<?php }
}
?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php
$skin=get_opt('_theme_skin');
if($skin=='white'){
$lightbox_style="light_rounded";
?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/white-skin.css" type="text/css" media="screen" charset="utf-8" />
<?php }else{
$lightbox_style="dark_rounded";
if($skin=='dark_trnsparent'){
?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/dark-transparent-skin.css" type="text/css" media="screen" charset="utf-8" />
<?php }
}?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/cssLoader.php" type="text/css" media="screen" charset="utf-8" />
<link rel="shortcut icon" type="image/x-icon" href="<?php echo get_opt('_favicon'); ?>" />
<?php
$jsuri=get_template_directory_uri().'/js/';
wp_enqueue_script('jquery');
wp_enqueue_script("pexeto-main", $jsuri.'main.js');
$enable_cufon=get_opt('_enable_cufon');
if($enable_cufon=='on'){
if(get_opt('_custom_cufon_font')!=''){
$font_file=get_opt('_custom_cufon_font');
}else{
$font_file=get_template_directory_uri().'/js/fonts/'.get_opt('_cufon_font');
}
wp_enqueue_script("pexeto-cufon", $jsuri.'cufon-yui.js');
wp_enqueue_script("pexeto-cufon-font", $font_file);
}
if (is_page_template('template-portfolio-showcase.php')) {
//load the scripts for the portfolio template
wp_enqueue_script("pexeto-showcase", $jsuri.'portfolio-showcase.js');
}
if (is_page_template('template-grid-gallery.php')) {
//load the scripts for the portfolio gallery template
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-draggable');
wp_register_script("pexeto-desaturate", $jsuri.'desaturate.js');
wp_register_script("pexeto-iscroll", $jsuri.'iscroll.js');
wp_enqueue_script("pexeto-grid-gallery", $jsuri.'grid-gallery.js');
}
if(is_page_template('template-full-width-slideshow.php') || is_page_template('template-full-height-slideshow.php')){
wp_enqueue_script("pexeto-full-slideshow", $jsuri.'slideshow.js', array("jquery", "pexeto-main"));
}
wp_head(); ?>
<?php
$sociable_lightbox=get_opt('_sociable_lightbox')=='on'?'true':'false';
$logo_height=get_opt('_logo_height')||116;
$disable_right_click=get_opt('_disable_click')=='on'?'true':'false';
?>
<script type="text/javascript">
pexetoSite.ajaxurl="<?php echo admin_url('admin-ajax.php'); ?>";
pexetoSite.enableCufon="<?php echo $enable_cufon; ?>";
pexetoSite.lightboxStyle="<?php echo $lightbox_style; ?>";
<?php $desaturate=get_opt('_home_desaturate')=='off'?'false':'true'; ?>
pexetoSite.desaturateServices=<?php echo $desaturate; ?>;
pexetoSite.disableRightClick=<?php echo $disable_right_click; ?>;
pexetoSite.rightClickMessage="<?php echo str_replace("\r\n", "\\n", pex_text('_click_message')) ; ?>";
jQuery(document).ready(function($){
pexetoSite.initSite();
<?php if (is_page_template('template-grid-gallery.php')) { ?>
pexetoSite.setMenuSliderLink();
<?php } ?>
});
</script>

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<!-- enables nested comments in WP 2.7 -->
<!--[if lte IE 7]>
<link href="<?php echo get_template_directory_uri(); ?>/css/style_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
</head>
<body <?php body_class(); ?>>
<?php
$bgimage = get_post_meta($post->ID, 'full_bg_value', true);
if(!$bgimage){
$bgimage=get_opt('_fullwidth_bg_image');
}
if($bgimage && !is_page_template('template-full-width-slideshow.php')){
?>
<?php if(get_opt('_bg_top_pattern')!='off'){?>
<div class="bg-image-pattern"></div>
<?php } ?>
<script type="text/javascript">
jQuery(document).ready(function($){
pexetoSite.setResizingBg("<?php echo $bgimage; ?>");
});
</script>
<?php } ?>
<div id="main-container">
<!--HEADER -->
<div id="header">
<div id="logo-container"><a href="<?php echo home_url(); ?>"></a></div>
<div class="clear"></div>
<div id="navigation-container">
<div id="menu-container">
<div id="menu">
<?php wp_nav_menu(array('theme_location' => 'pexeto_main_menu', 'fallback_cb'=>'pexeto_no_menu')); ?>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div id="navigation-line"></div>
</div> <!-- end #header -->


I'v deleted custome code in <title> tag, then let WordPress SEO by Yoast generate titles, you can download and install it from:

[[LINK href="http://wordpress.org/plugins/wordpress-seo/ "]]http://wordpress.org/plugins/wordpress-seo/
[[/LINK]]

This should work. Good luck.