This topic has 1 reply, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #695
     enricoeur
    Participant

    Hello,

    i would like to use WordPress SEO by Yoast to make the website SEO optimized. I found this article:

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

    Unfortunatly is not evident in your theme where i should put this code:


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

    I can tell that WordPress SO actualy work on normal pages and articles, but in buddypress pages, the tag title remain everywere the same. This fix should do what i need, but is not evident where is the buddypress header code in your packet o if not available from where buddypress extract it.

    Thanks

    #707
     SQadmin
    Keymaster

    Hi
    You need to change this in header.php
    You’ll need to replace the existing line:

    COPY CODE
    
    <title ><?php wp_title( '|', true, 'right' ); ?></title >
    

    Also do not modify main theme file. Use the included child theme.
    Copy header.php to sweetdate-child/header.php and do the changes there

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?