WordPress SEO by Yoast
[resolved] Title displaying blog name twice (11 posts)

  1. Nick5a1
    Posted 4 years ago #

    Hi all,

    I've just installed this great plugin, but have a problem with the "Generate SEO title" function and duplicate blogname in titles.

    Normally, my SEO title is "POST/PAGENAME - BLOGNAME". When I hit the auto generate SEO title in the wordpress SEO plugin, the same SEO title is generated in the preview, however the actual SEO title becomes "POST/PAGENAME - BLOGNAMEBLOGNAME". If I change the SEO title to just the post/pagename it displays correctly in search listings, but the snippet preview is wrong, as it does not show the blog name.

    This wouldn't be a major issue if it was just me posting and editing content, but I have non-technical people posting as well. Anyone know how I can fix this issue?

    Thanks very much.



  2. bansalhimanshu
    Posted 4 years ago #

    I faced the same issue. I changed header.php file. It took me a few hours to fix. Pages, posts, tags, categories, and archives work fine however I have to fix title for my library. Let me know if you need the code and I will give you the code OR you can experiment. You can also visit my website and see whether this is how you want the title - http://www.shilpagupta4.com

    By the way, how is wordpress-seo. I use Yoast SEO. I am facing problem of canonical reference in subscribe page showing link to an archive that does not exist url/2010/10/27/

  3. frisno
    Posted 4 years ago #

    I see the same bug, I sorted it by adding %%title%% to "Post" - "Title template:"

  4. valentin88
    Posted 4 years ago #

    Frisno you forgot to add the "-" character after

    . The result must be
    %%title%% -
    or else will look like POST/PAGENAMEBLOGNAME and we need POST/PAGENAME - BLOGNAME .

  5. Joost de Valk
    Plugin Author

    Posted 4 years ago #

    The thing is that you have to either "force rewrite" or update your header. All of this is explained on your SEO -> Titles page.

  6. nht48823
    Posted 4 years ago #

    same issue my blog title appears twice after installing this plugin. - example, article title - myblog myblog
    I did the following as suggested.
    i "force rewrite titles" and I updated my template header to "<title><?php wp_title(''); ?></title>"

    please help.


  7. mikedev
    Posted 4 years ago #

    Yes, this is a serious issue with this good plugin. Often the theme handles titles fine. There should be an option above "Force rewrite titles" that says something like "Don't rewrite titles" and let the theme handle it.

  8. nht48823
    Posted 4 years ago #

    if you copy and paste your snippet preview title into "SEO Title" field, it works fine.

  9. bansalhimanshu
    Posted 4 years ago #

    valentin88 - I will try your solution.

    For now, I have modified header.php as follows:

    * Print the <title> tag based on what is being viewed.
    global $page, $paged;

    wp_title( '»', true, 'right' );

    //Himanshu April 25, 2011 Start changed to stop showing Shilpagupta4 after every article title
    // Known bug: Library books show title >> I think tags
    // Add the blog name.
    //bloginfo( 'name' );
    if (!( is_home() || is_front_page() ) ){
    echo " ";
    if (!is_archive() || is_category() || is_tag()){
    echo '»'; echo " ";}
    bloginfo( 'name' );}
    //Himanshu April 25, 2011 End changed to stop showing Shilpagupta4 after every article title

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " » $site_description";

    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
    echo ' » ' . sprintf( __( 'Page %s' ), max( $paged, $page ) );


    Take a look at my blog http://www.shilpagupta4.com and you will see that it has only one known bug (library does not show title propertly). I anyway need to fix library because library shows sidebar below the library content and sidebar shows even on iPhone.

  10. Joost de Valk
    Plugin Author

    Posted 4 years ago #

    Any remaining questions here?

  11. bansalhimanshu
    Posted 4 years ago #

    I found that Greg's high performance SEO does not have any problem with title. Further, I have heard that Greg's SEO works with much less resources. I liked that, others may try.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic