This topic has 18 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp
hi,
I am using yoast seo and have problems with how the page/browser title builds up. Essentially, there is a “space” missing. See http://www.plantknot.com where it leads to “PLANTKNOT – A new approach to community gardeningPLANTKNOT Original Gardening Advice.
The first part is comprised by yoast. I guess the second part comes from “classico”, right?
I could not figure out a good workaround. Even if i put in another separator, the space would be missing and the separator would show up in the SERP-Title, what would look awkward.
I found this by yoast: yoast resource, talking about the theme’s support of the title tag by “add_theme_support( ‘title-tag’ );” in the functions.php. Simply adding this to functins.php is not working.
What can be done to get a clean tag line? Thank you!
Martin
Hello,
Please provide WP admin credentials in Private Content.
Regards,
Eva Kemp.
Hello, thanks!
Hello,
Login details are incorrect.
Please check them.
Regards,
Eva Kemp.
another try
Hello,
I’ve enabled the option “Force rewrite titles” in Yoast SEO settings > General. Please check title now.
Regards,
Eva Kemp.
Hi Eva,
thank you, it does work, but I wanted to avoid this option if possible.
Could you tell me how to edit the header.php to get the same result?
Hello,
As I see you’ve disabled that option, but title in browser tab is shown correctly.
Have you resolved the issue?
Regards,
Eva Kemp.
Hello,
not quite, I’ve put the header.php in the child theme and removed there the line:
wp_title( ‘|’, true, ‘right’ );
Now the homepage shows a good result, but the archive and all other pages only “PLANTKNOT”, the site’s title.
Please see my last reply, thank you!
Martin
Hello,
Please provide FTP credentials in Private Content.
Regards,
Eva Kemp.
Hello,
here it is.
Martin
Hello,
I’ve edited header.php file and removed the code && ( is_home() || is_front_page() )
in line 19.
Please check titles now.
Regards,
Eva Kemp.
Hello,
great, the titles are now the same everywhere, namely the tag by Classico “PLANTKNOT / Original…” Now what is left is a differentiation between the pages, otherwise I get a problem with SEO. The initial idea was to have “pagetitle SPACE classico-tag” Would be awesome if you could do that!
Martin
Hello,
If you want to show page title too you need put wp_title( '|', true, 'right' );
back in header.php.
Regards,
Eva Kemp.
Hello,
ok, but then we are back at the beginning with the “space” missing between the two tag types. What I would need is a ” ” or even better a ” – ” between them. Could you do this?
Thank you!
Martin
Hello,
I’ve added this code in child header.php file echo " - ";
in line 15.
Check titles now.
Regards,
Eva Kemp.
Hello,
works perfectly, thank you very much!
Martin
Hello,
You’re welcome.
Regards,
Eva Kemp.
Tagged: automatic, friendly, generation, templates, woocommerce, wordpress
The issue related to '‘title-tag without space between template and automatically added page name’' has been successfully resolved, and the topic is now closed for further responses