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>
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?
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:
Ben, can you confirm which version is correct since you’re on the inside?
Right, I just realized I had an outdated version as well. I just downloaded the latest one and simply changing <?php FLTheme::title(); ?> to <title><?php the_title(); ?></title> should do the trick!
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.
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.
@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
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.
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:
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.