Skip to:
Content
Pages
Categories
Search
Top
Bottom

SEO Friendly Page Titles

  • @fishbowl81

    Participant

    I think it makes sense to put the site name at the END of page titles, so I wrote a quick and dirty filter which does just that. I have these few lines of code inside of my bp-custom.php file.

    function bp_seo_title($title){

    return substr($title, strlen(get_blog_option( 1, \'blogname\' ) . \' — \')).\' — \'.get_blog_option( 1, \'blogname\' );

    }

    add_filter( \'bp_page_title\', bp_seo_title, 10, 1);

  • The topic ‘SEO Friendly Page Titles’ is closed to new replies.
Skip to toolbar