• 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/

Viewing 2 replies - 16 through 17 (of 17 total)
  • 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.

    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.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘How do I avoid duplicating Site Title?’ is closed to new replies.