WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Make WordPress SEO by Yoast Works with Buddypress - Duplicate titles (3 posts)

  1. aidecms
    Member
    Posted 1 year ago #

    Hello, I installed the latest WordPress SEO by Yoast plugin, and I have duplicate meta's titles on buddypress pages...

    Is someone knows how could I make the plugin run with buddypress or avoid duplicate, or block the meta's title rewritting process on buddypress pages only ?

    I found this thread : http://bp-tricks.com/coding/making-buddypress-compatible-with-the-wordpress-seo-plugin-from-yoast/

    and this one also : http://wp-pompey.org.uk/2011/10/27/bp-and-wordpress-seo-titles/

    But the trick seems not works, I still have duplicate titles on these specifics pages for exemples

    mywebsite.com/groups/
    mywebsite.com/groups/voyage-asie/
    mywebsite.com/groups/voyage-asie/forum/
    mywebsite.com/groups/voyage-asie/forum/topic/partir-en-thailande/

    All have the same following meta's title : ” Groups – %Mywebsitename%”

    Thank you very much for your help !

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

  2. alen9788
    Member
    Posted 1 year ago #

    i have the same problem.

    Find the following code in header.php of your Child Theme (around line 9):

    <title><?php bp_page_title() ?></title>
    And replace it with the following snippet:

    <?php if(!bp_is_blog_page()){ ?>
    <title><?php bp_page_title() ?></title>
    <?php } else { ?>
    <title><?php wp_title('') ?></title>
    <?php } ?>

    BUT I CAN'T FIND THE CODE <title><?php bp_page_title() ?></title>,who can help?

  3. johnjf
    Member
    Posted 1 year ago #

    I think if you created your own child theme and you can't find the <title> tag then all you have to do is just instert your code above just below the <head> tag

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic