Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ben MacAdam
14,982 PointsGoogle injecting "sitename:" before page title in search results
I recently noticed google injecting my website name and a colon before my actual homepage title tag. I am wondering if this is harming SEO since I would rather be coming up for the title tag of course. I am using Yoast's Wordpress SEO plugin and my actual title tag is reflected on the page itself, but in the SEPR I am getting the issue.
Any thoughts or others experiencing the issue with a fix?
Thanks!
4 Answers

Adam Sackfield
Pro Student 19,663 PointsLet me know if you find out what causing it, in case I ever run into the issue.

Ben MacAdam
14,982 PointsWill do! So far I have changed my header to have
<title><?php wp_title(''); ?></title>
instead of
<title><?php wp_title( '|', true, 'right' ); ?></title>
but it doesn't look like that will change things.
I just now stripped out the %%title%% from the plugin template settings so it's now %%page%% - %%sitename%% and I am crossing my fingers that that'll do it. I'll let you know once I give google some time to update.
Thanks!

Adam Sackfield
Pro Student 19,663 PointsThat's the only way I have ever added a title tag in WP. I edited your markdown for correct code embedding. If you click edit you can see the formatting now :)

Ben MacAdam
14,982 Pointsoops sorry that php formatting meant to use
<?php wp_title(''); ?>

Bethany Wellard
3,180 PointsI have been having this issue with my site the past week. My site isn't on wordpress either. From what I noticed it was only if I googled my site directly but if I googled it under keywords that didn't happen.
Adam Sackfield
Pro Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsFrom a quick Google search it seems to be related to Yoast rather than Google here