WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
How do I avoid duplicating Site Title? (18 posts)

  1. twofourseven
    Member
    Posted 1 year ago #

    I have installed Yoast to my WordPress site. I have noticed that Site Title details are duplicated, once from the content in General Settings and the other from Yoast's WordPress SEO plugin on the Home Page.

    Which title one should I delete - the one in WordPress Settings or the one in the Plugin for the home Page? Which carries preference for SEO puposes?

    Many thanks!

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. hytare
    Member
    Posted 1 year ago #

    I need help with this too, since I activated the plugin it duplicated the site title, I have tried everything and I still can't change it.
    I don't want to delete the wordpress title... there is another way, right?

    http://estilokawaii.com

  3. spennis
    Member
    Posted 1 year ago #

    +1 !

    When searching for my site in google, all results have duoble site titles.. looks like crap

  4. Dave
    Member
    Posted 1 year ago #

    There's also a conflict with WP-Touch where it duplicates the title on the mobile site.

  5. spennis
    Member
    Posted 1 year ago #

  6. orangjul
    Member
    Posted 1 year ago #

    I am also having this problem!

  7. catchmohl
    Member
    Posted 1 year ago #

    Made some changes to my SEO plugin settinga and having same problem on some types of pages (those with a custom format)

  8. spennis
    Member
    Posted 1 year ago #

    Any input from @yoast ?

  9. tomjamieson
    Member
    Posted 1 year ago #

    I'm having this issue as well, plus I'm getting duplicate titles on my post pages.

    http://tomjamieson.com

  10. hytare
    Member
    Posted 1 year ago #

  11. Dave
    Member
    Posted 1 year ago #

    Unfortunately adding <?php wp_title(''); ?> doesn't fix wp-touch conflict.

  12. webpromoterpro
    Member
    Posted 1 year ago #

    wrong topic sorry

  13. tomjamieson
    Member
    Posted 1 year ago #

    adding <?php wp_title(''); ?> didn't fix my problem, unfortunately

  14. spennis
    Member
    Posted 1 year ago #

    I replaced the <title>.....</title> tag in my header.php with <title><?php wp_title(''); ?></title> and it works!

  15. gpapatheodorou
    Member
    Posted 1 year ago #

    Many thanks spennis!!
    I was looking two days for a solution!!!

  16. elenabrz
    Member
    Posted 1 year ago #

    That didn't work for me...

  17. NJ WebGuy
    Member
    Posted 1 year ago #

    Replacing the title tag in my theme didn't work either.

    Specifically, the way WP SEO and Query Multiple Taxonomies rewrite titles don't play nicely together.

    Or maybe neither of them played nicely with my own title rewriting.

    Whatever. I really just wanted to disable Yoast's title rewriting.

    There are a number of posts here with solutions that worked for some people, but none of them worked in this particular case, so I did it the dirty way. Just hacked it out.

    Important Note: It is not normally good practice to change a plugin's core files.

    Main reason is that you will have to repeat this step each time you update the plugin.

    Anyway, here's the simple fix.

    In your plugins folder, find /wordpress/seo/frontend/class-frontend.php

    You can get this via FTP, or even just go to your wordpress backend plugin page and hit edit.

    In that file, search for the wp_title filter.

    The version I most recently had to hack had it on line 32, and it looked like this:

    add_filter( 'wp_title', array( $this, 'title' ), 15, 3 );

    I think an older version used to have different numbers toward the end of the line. It should be the only line that starts with add_filter and has wp_title in there.

    Just add a couple of slashes in front of this line.
    That identifies the line as a comment only, not to be executed.

    It effectively stops the whole ugly thing in its tracks.
    // add_filter( 'wp_title', array( $this, 'title' ), 15, 3 );

    Of course, this will disable all the title functionality of the plugin, which might be another problem altogether.

    But if you were happy with your titles before, this is the quickest way to get them back. Especially if the solutions in the other threads haven't worked.

  18. Wieli
    Member
    Posted 1 year ago #

    Anyone that have another solution to this. I still want to use the title tag rename for all my other pages, but not the front pages since it duplicates my name.

    Isnt this happening for everyone?

    I just want the title for the frontpage to be the one named in the general settings tab. and from there i could work with the inner pages title.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic