• Hi there,

    I am fighting to find a way to end this error. My title tag is repeating twice. Thus, the header.php code seems to be correct. Is it from here? I tried to find it on other posts, and there are similar problems but I think the reason is different for mine ??

    Thanks by advance for any kind of help ??
    The website is https://www.artiane.com

    <!--Meta Tags-->
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <?php if(theme_get_option('general','enable_seo_settings') == 'yes') : ?>
    <meta name="keywords" content="<?php echo stripslashes(theme_get_option('general','meta_keywords')); ?>" />
    <meta name="description" content="<?php echo stripslashes(theme_get_option('general','meta_description')); ?>" />
    <?php endif; ?>
    
    <!--Title-->
    <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    
    <!--RSS Feeds & Pingbacks-->
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS2 Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter gregbot

    (@gregbot)

    Up,
    Please answer me, help!
    The 1st page is banned from google because of this bug.
    Just a suggestion or direction will be appreciated. Please

    Are you talking about the title tag or about a post or page title?

    Thread Starter gregbot

    (@gregbot)

    Hi Peter,
    It is about the title tag.

    It is like that:
    Galerie Artiane ? Honfleur Galerie Artiane

    And Galerie Artiane shouldn’t be added twice.

    Thread Starter gregbot

    (@gregbot)

    I found this on google, but it doesn’t fit I think:
    https://freelancefolder.com/forums/viewtopic.php?f=14&t=10606

    Thread Starter gregbot

    (@gregbot)

    On header.php, I did that:

    <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>

    Change it to:

    <title><?php wp_title(''); ?></title>

    Do you think it is ok? Because the title tag is not repeating now, but I am affraid of bad consequences on other part othe the website.

    By using this
    <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
    You tell wordpress to fill the title tag with the name of the blog, followed by the title of the page or post being viewed.

    If the title of the page or post is the same as the name of the entire blog, you’ll get the same text twice.

    Not a bug and google will not ban you for this.

    Thread Starter gregbot

    (@gregbot)

    Thanks Peter for your explanation.
    Then my problem is to be able to edit the home page title. Maybe I can’t due to the theme I use which is using the blog title as homepage title.

    If you’re using a page as home page,
    go to dashboard, pages, the page your using as home page, change title

    if you’re using the blog front page as home page, look into the index.php file.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘title repeating’ is closed to new replies.