Bug: BB theme keeps adding blog title to all pages/posts (Yoast SEO)

I see in the header.php that you’re modifying title tag of all pages, the problem is theme keeps adding “| Blog Title” regardless of Yoast SEO settings for page titles. Even checking “Force rewrite titles” in Yoast SEO settings does not remove “| Blog Title” at the end of titles.

On-page optimization is critical, so having full control over the title tag is crucial. I know I can change it in the header.php myself, but I wanted to pass this on to reduce changes to files we need to make.

For anyone who wants to fix it now, simply copy header.php into your child BB theme and change the following line:
<title><?php FLTheme::title(); ?></title>

to this:
<title><?php the_title(); ?></title>

Thanks,
Viktor

Hi Viktor,

Thanks for letting us know about this. I’ll do some testing and see what we can do for the next update.

Justin

This!! Always this Title thing in WP - with second guessing end-users. Always!

fwiw it’s not just Yoast that suffers the inability to Force Rewrite. It’s all the other SEO plugins too!

I have put in a feature request for simple title/desc fields for posts and pages - a la Genesis.

Thanks Viktor for the solution. Very much appreciated.

uh oh…

In my attempt to follow Viktors suggestion above I copied bb-theme header.php in to my bb-child-theme and looked for the line to change. I can’t see it anywhere???

Do I just add Viktor’s Title change in there - somewhere?

when i do add Viktor’s <title><?php the_title(); ?></title> line in - or even replace the heder.php’s <?php FLTheme::title(); ?> - my whole header gets whacked out?

my bb-header.php file

Thank you.

Hey Northumbrian,

Are you using the latest version of the theme? That doesn’t look right. Here’s what I have from my end.
http://imgur.com/dmHNkHy

Ben

Guys, I was curious about this too. I had Ben’s code, but realized its an outdated version. The latest available theme has this changed, version 1.3.1.3. I literally just downloaded it to check:

Screenshot

Ben, can you confirm which version is correct since you’re on the inside?

Hey Ben. Thanks for the heads up. I thought I had the latest version. MY install shows Version: 1.3.1.3 for BB and 1.0 for bb-child… Tx.

I’m off to check now…

uh oh it’s a conversation now. Sorry to bring it up :slight_smile:

Note: needs put version numbers in Downloads section - for easy eyeballing…

Right, I just realized I had an outdated version as well. :wink: I just downloaded the latest one and simply changing <?php FLTheme::title(); ?> to <title><?php the_title(); ?></title> should do the trick! :slight_smile:

Ben

Thanks Ben. Would be great if you could bring this up to get it fixed since it does affect SEO of the website and not many will realize this is the problem.

“…should…” I always get a li’l nervous when I see that word in the TechSup biz!

That’s what I tried first Ben and it whjacked out my header and associated top and right menus.

Lemme show you a screenshot!

Darn SEO Titling. Always!

here’s how it should look: http://159.203.2.39/

That’s twice I’ve replaced that line now and, shocking I know, got the same whacked-out-header result both times!

???

Hey Viktor,

I think Justin already has this on his radar. They’ll probably work on the theme after finishing up with the plugin’s latest release.

Northumbrian,

Do you mind sharing a screenshot of your header.php file after the change?

Ben

What’s interesting now, this updated function actually works with Yoast SEO as it should. I just upgraded theme to latest version and without header.php in child theme folder, everything is working without the extra separator and blog title.

Hey Ben. NP. Screenshot is in post above. Or, here’s another - with code change!

bb-child header php change

and the result

bb-child header with change

fwiw the footer gets whacjked out as well…

Looks like you have 2 title tags, that might be it.

screenshot

But like I said above, on my dev site with Yoast SEO and latest theme 1.3.1.3 it looks like this issue is gone without modifying header.php.

@viktor - yeah i saw that but i have added, subtracted, replaced, miss placed, multiplied, concatenated, and all that other mathematical stuff and still, no happy :frowning:

See new screenshot above pls. Tx. for your help.

Hey Northumbrian,

Like what Viktor said, it seems this has already been addressed with the latest version. Try removing your header.php file on your child theme and work with Yoast SEO. I just tried it on my localhost and it works fine.

Ben

Guys - fwiw i really really try to avoid Yoast [there are other options]. Just like I try to avoid Chrome [there are other options] and just hope that i’m not forced to use Yoast just to avoid the never ending, for at least a decade now, WP Page Title issue[s].

sigh thanks so much for your help and eyeballs on this Ben and Viktor. I do appreciate it.

Sorry, I wasn’t paying attention first time I looked. Your problem Northumbrian isn’t related to the issue we were discussing. It’s your stylesheet path that’s getting messed up, you might’ve changed it by accident:

screenshot

You need to remove …/bb-theme/. I think you might have that in several different places.

Yoast’s plugin is by far the best one out there, and I’ve tried them all. Makes life so much easier, not only for me but for clients too who have no technical knowledge.

Same for Chrome for development, no browser comes close… even Firefox.