Skip to:
Content
Pages
Categories
Search
Top
Bottom

The profile name is not visible in

  • @robertherold

    Participant

    Hello,

    I use add_theme_support ('title-tag'); and the <title></title> does not show the user’s name if I am on their profile.

    Has anyone ever experienced this?

Viewing 12 replies - 1 through 12 (of 12 total)
  • @robertherold

    Participant

    Anyone? 🙂

    @robin-w

    Moderator

    so are you designing a theme?

    @robertherold

    Participant

    Yes, I am designing my own theme. But basic WordPress templates work the same way.
    There is no longer a <title></title> tag in header.php. Instead, functions.php has an add_theme_support ('title-tag');.
    If I remove this and write the title tag back to header.php, it will display the user’s name in the title bar.

    View post on imgur.com

    View post on imgur.com

    @robin-w

    Moderator

    so does twenty nineteen work ?

    @robertherold

    Participant

    Does not work. If the template uses add_theme_support (‘title-tag’), the profile name will not appear in the title bar.

    @robin-w

    Moderator

    thanks – I’ll take a look when I get a moment

    @robin-w

    Moderator

    ok, so I just tried 2019 on my test site, and I get the user name on the title bar, with just bbpress as the only plugin.

    @robin-w

    Moderator

    @robertherold

    Participant

    Yes

    on user profile:

    View post on imgur.com

    on Hello world!:

    View post on imgur.com

    @robin-w

    Moderator

    looks like bbp_title is not working for users.

    the code is called by a filter in
    \bbpress\includes\core\filters.php

    which is

    Line 43: add_filter( 'wp_title', 'bbp_title', 10, 3 );

    the function bbp_title is held in

    \bbpress\includes\common\template.php

    and the function starts at line 2578.

    I may get a chance to look further tomorrow (or maybe not!), but if you fancy having a look. The function has a filter at the end, so if you can work out what’s wrong, should be easy to add a fix

    @robertherold

    Participant

    No solution yet?

    @robin-w

    Moderator

    sorry, tied up in paid work at the moment

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar