Skip to:
Content
Pages
Categories
Search
Top
Bottom

No Title of Each Posts and Pages


  • @mikey3d
    Participant

    @mikey3d

    There’re no title headline of posts and pages.

    Ex: Post:
    URL: mysite.com/hello-world/
    Title tag: My blog | Home
    It should be Hello world! | My blog

    Ex: Page:
    URL: mysite.com/about/
    Title tag: My blog | Home
    It should be About | My blog

    Why is that BuddyPress mess up the title?

    WordPress 3.0.1
    BuddyPress: Version 1.2.5.2
    Theme: BuddyPress Default 1.2.5.2

    Thanks, Mikey3D

Viewing 2 replies - 26 through 27 (of 27 total)

  • Roger Coathup
    Participant

    @rogercoathup

    The apply filters line at the end of the bp_page_title() / mikey_page_title() function sets the order of the title string, try changing it from:

    return apply_filters( ‘bp_page_title’, $blog_title . ‘ | ‘ . esc_attr( $title ), esc_attr( $title ) );

    to something like:

    return apply_filters( ‘bp_page_title’, esc_attr( $title ) . ‘ | ‘ . $blog_title, esc_attr( $title ) );

    Does that do the trick?


    @mikey3d
    Participant

    @mikey3d

    Great, it does the trick!

    Can it apply another filter for homepage title with description? The description is setting in General Settings of Tagline.

    The homepage title is Home | My blog.

    Can the title with description be: My blog | Knowledge is power

    Thanks, Mikey3D

Viewing 2 replies - 26 through 27 (of 27 total)
  • The topic ‘No Title of Each Posts and Pages’ is closed to new replies.
Skip to toolbar