Skip to:
Content
Pages
Categories
Search
Top
Bottom

Working with Titles

  • @aaronfrankel

    Participant

    The titles in BuddyPress are driving me nuts. To start they were all showing “Home | Site Name” unless I was in the BuddyPress pages like “Activity”, “Members”, etc. After running some searches I found some bits of code, poked, prodded, and finally got the title fixed for the posts, but now the titles are only showing the site name on pages like “Activity”, “Members”, etc. The Titles on the user pages are working, but they are backwards.

    I am using WordPress 3, BP Colums 1.2 theme and HeadSpace2. Before hacking at things HeadSpace was not having any affect.

    What I am trying to do:
    • On user pages I would like to revers the order of the titles so they read “User Name | Activity | Site Name”.
    • Pages like “Activity”, “Members”, etc I would like it to print “Activity | Sitename”.
    • Posts I am happy with the way they are now being handled.

    What I have done so far:

    added this to functions.php

    Code:
    if (!bp_is_blog_page() ) {
    add_action( ‘wp_title’, ‘bp_get_page_title’);
    }

    made this change to header.php
    Changed bp_page_title() to wp_title(”); in Title tag

    Help would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • @nuprn1

    Participant

    have a look at the function bp_get_page_title() in bp-core-/bp-core-templatetags.php to see how the title is built. There is a filter which you can hook onto, albeit the page_title function is a bit lacking on certain pages.

    or

    create your own function (and just change your child theme header.php to the new)

Viewing 1 replies (of 1 total)
  • The topic ‘Working with Titles’ is closed to new replies.
Skip to toolbar