• Resolved bmcconach

    (@bmcconach)


    For starters, this is one amazing plugin! Offering a Buddypress-esque feel to my non-Budypress site is exactly what the doctor ordered!

    I am currently running into one slight snag though. When navigating to the “Messages” page, the title of the website is shown as “Messages | ” instead of the intended “Messages | Site Name”.

    I’ve found the code manipulating this within the functions.php, but do not see anything that would enable me to change this to the desired effect.

    Any help would be most appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ismail

    (@elhardoum)

    Hi,

    Thank you for that!

    I believe there is this filter you can use bbpm_get_dynamic_page_title to add the site tag name after the messy document title:

    add_filter('bbpm_get_dynamic_page_title', function($title){
        return "{$title}Site Name";
    }, 10);

    (the code should be added to child theme’s functions file or a custom plugin)

    I haven’t tested it but I am confident it should work. Let me know.

    Thanks,
    Samuel

    Thread Starter bmcconach

    (@bmcconach)

    Samuel,

    Thank you so much for your prompt reply!

    Using your code, I was able to achieve the desired effect. I did modify it slightly so if my site’s name changes in the future, it will update automatically.

    That code, for anyone interested:

    add_filter('bbpm_get_dynamic_page_title', function($title){
        return "{$title}".get_bloginfo( 'name' );
    }, 10);

    Again, thank you for such a quick response and an amazing plugin!

    • This reply was modified 7 years, 11 months ago by bmcconach.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page Title – Missing Website Title’ is closed to new replies.