How To Remove Duplicate Title Tags

under webmaster tools/HTML improvements, it is telling me that I have 35 duplicate title tags, however, when I look at the links, they are not really pages, so there is no where to remove them. Example: it will show "/page8/" but when I click on the link, it goes to my home page...how do I fix that?

http://PiratesParadiseAdventures.com

  • Jack Kitterhing

    Hi there @bwoeller,

    Hope you're well today and thanks for your question.

    I've just checked this and your title tag for all pages like that on the archives is St Thomas & St John Boat Rentals - Boat Charters to The Virgin Islands

    Ideally you want to get the actual output for the title tag to include the part 8/page 8 for example.

    Can you paste the relevant code form your header.php please?

    Thanks!

    Kind Regards
    Jack.

  • bwoeller

    Unfortunately, I'm not smart enough to understand what you mean...by "Ideally you want to get the actual output for the title tag to include the part 8/page 8 for example."

    I hope this is the code you are looking for:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); ?></title>
    <link rel="profile" target="_blank" href="http://gmpg.org/xfn/11" />
    <link rel="shortcut icon" href="<?php get_option_tree('favicon', '', true); ?>" />
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
    <?php if (get_option_tree('responsive_layout') == 'Responsive layout only for smartphones') {?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/mobile.css" type="text/css" media="screen" />
    <?php } elseif (get_option_tree('responsive_layout') == 'Responsive layout for smartphones and tablets') { ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/mobile-all.css" type="text/css" media="screen" />
    <?php } ?>
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if IE 7 ]>
    <link href="<?php bloginfo('template_url'); ?>/ie7.css" media="screen" rel="stylesheet" type="text/css">
    <![endif]-->
    <!--[if IE 8 ]>
    <link href="<?php bloginfo('template_url'); ?>/ie8.css" media="screen" rel="stylesheet" type="text/css">
    <![endif]-->
    <!--[if lte IE 6]>
    <div id="ie-message">Your browser is obsolete and does not support this webpage. Please use newer version of your browser or visit Internet Explorer 6 countdown page for more information. </div>
    <![endif]-->

    <?php
    $detect = new Mobile_Detect();
    if (get_option_tree('responsive_layout') == 'Responsive layout only for smartphones' && !$detect->isTablet()) { ?>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php } elseif (get_option_tree('responsive_layout') == 'Responsive layout for smartphones and tablets') { ?>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php } ?>

    <?php
    if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
    wp_head();
    ?>

    <?php include 'var.php'; ?>
    <?php get_option_tree('analytics_code', '', true); ?>
    <meta name="p:domain_verify" content="46a6e15bba41a515fce466f5c12cdadb"/>
    </head>
    <body <?php body_class(); ?>>

    <!-- *******************************Logo & Menu****************************** -->
    <div id="horiz_m_bg">
    <?php get_sidebar('top') ?>
    <div id="horiz_m" class="size-wrap">

    <div id="logo">
    <?php if (!get_option_tree('logo_uploud')){ ?>"><h1><?php bloginfo('name'); ?></h1> <?php } else { ?>
    "><img src="<?php get_option_tree('logo_uploud', '', true); ?>" alt="<?php bloginfo('name'); ?>" />
    <?php } ?>
    </div><!--#logo-->

    <div id="main_menu" class="slidemenu">
    <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => false, 'items_wrap' => '<ul id="primary-main-menu" class=%2$s>%3$s', 'fallback_cb' => false)); ?>
    </div><!--#main_menu-->

    </div><!--#horiz_m-->
    </div><!--#horiz_m_bg-->

    <!-- *******************************Subhead********************************** -->
    <div id="subhead">
    <?php if (get_option_tree('disable_subhead_inner_shadows', '')) {} else {
    echo '<div class="subhead_shadow"></div>'; } ?>
    <div class="page_title size-wrap">
    <?php if ( is_home() ) { echo '<h1 class="entry-title-page">', wp_title (''). '</h1>', breadcrumbs_plus(); }
    elseif ( is_search() ) { ?>
    <h1 class="entry-title-page"><?php $search_title = get_option_tree('search_results_for');
    if ($search_title){ echo $search_title . ' <span>' . get_search_query() . '</span>'; }
    else { printf( __( 'Search Results for: %s', 'promotion' ), '<span>' . get_search_query() . '</span>' );} ?>
    </h1>
    <?php breadcrumbs_plus(); ?>
    <?php } elseif ( is_404() ) { ?>
    <h1 class="entry-title-page" style="text-align:center"> <?php
    $title_404 = get_option_tree('title_404', '', true);
    if ($title_404){ $title_404; }
    else{ _e('Page Not Found', 'promotion'); }?>
    </h1>
    <?php } elseif (is_category() || is_tag() ){
    echo '<h1 class="entry-title-page">', single_cat_title() .'</h1>', breadcrumbs_plus(); }
    elseif (is_archive() ){ ?>
    <h1 class="entry-title-page">
    <?php if ( is_day() ) : ?>
    <?php printf( __( 'Daily Archives: <span>%s</span>', 'promotion' ), get_the_date() ); ?>
    <?php elseif ( is_month() ) : ?>
    <?php printf( __( 'Monthly Archives: <span>%s</span>', 'promotion' ), get_the_date( 'F Y' ) ); ?>
    <?php elseif ( is_year() ) : ?>
    <?php printf( __( 'Yearly Archives: <span>%s</span>', 'promotion' ), get_the_date( 'Y' ) ); ?>
    <?php else : ?>
    <?php _e( 'Archives', 'promotion' ) ?>
    <?php endif; ?>
    </h1>
    <?php breadcrumbs_plus(); ?>
    <?php } else { echo '<h1 class="entry-title-page">', the_title(). '</h1>', breadcrumbs_plus(); } ?>
    </div>
    <?php if (get_option_tree('disable_subhead_inner_shadows', '')) {} else {
    echo '<div class="subhead_shadow_bottom"></div>'; }?>
    </div>

    <!-- *******************************Before wrapper*************************** -->
    <?php if ( is_home() || is_category() || is_tag() ) {if (get_option_tree('before_content_blog')) { get_sidebar('content');} } elseif ( is_404() ) {} elseif ( get_post_meta($post->ID, 'content_sidebar_check', true) == 'on' ) { get_sidebar('content'); } ?>

    <!-- *******************************Wrapper********************************** -->
    <div id="wrapper" class="size-wrap">

  • Hoang Ngo

    Hi @bwoeller,

    I hope you are well today.

    Your setting look pretty good. In your screen shot, mostly is the page duplicate, example pirate-2,pirate-3, it is because you have 2 page with same title.

    Solution: Delete duplicate pages or change the pages' slug.

    Example: it will show "/page8/" but when I click on the link, it goes to my home page...how do I fix that?

    The url /page8/ is generate by pagination on your website, this is fine and no need to worry.

    I also see some titles are media, for this, we just need to add the media to noindex and this will be remove.

    If you have any issues please don't hesitate to let us know so we can assist

    Best Regards
    Hoang

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.