Title-tag without space between template and automatically added page name

This topic has 18 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp

  • Avatar: kikjou
    Martin
    Participant
    September 20, 2016 at 12:33

    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

    17 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    September 20, 2016 at 13:51

    Hello,

    Please provide WP admin credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: kikjou
    Martin
    Participant
    September 20, 2016 at 14:06

    Hello, thanks!

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    September 20, 2016 at 14:12

    Hello,

    Login details are incorrect.
    Please check them.

    Regards,
    Eva Kemp.

    Avatar: kikjou
    Martin
    Participant
    September 20, 2016 at 14:17

    another try

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    September 20, 2016 at 16:22

    Hello,

    I’ve enabled the option “Force rewrite titles” in Yoast SEO settings > General. Please check title now.

    Regards,
    Eva Kemp.

    Avatar: kikjou
    Martin
    Participant
    September 20, 2016 at 16:39

    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?

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    September 20, 2016 at 17:24

    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.

    Avatar: kikjou
    Martin
    Participant
    September 20, 2016 at 17:35

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    September 20, 2016 at 18:11

    Hello,

    Please provide FTP credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: kikjou
    Martin
    Participant
    September 21, 2016 at 15:53

    Hello,
    here it is.
    Martin

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    September 21, 2016 at 16:37

    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.

    Avatar: kikjou
    Martin
    Participant
    September 22, 2016 at 07:15

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    September 22, 2016 at 15:11

    Hello,

    If you want to show page title too you need put wp_title( '|', true, 'right' ); back in header.php.

    Regards,
    Eva Kemp.

    Avatar: kikjou
    Martin
    Participant
    September 23, 2016 at 21:53

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2016 at 10:30

    Hello,

    I’ve added this code in child header.php file echo " - "; in line 15.
    Check titles now.

    Regards,
    Eva Kemp.

    Avatar: kikjou
    Martin
    Participant
    September 26, 2016 at 10:56

    Hello,

    works perfectly, thank you very much!

    Martin

    Avatar: Eva
    Eva Kemp
    Support staff
    September 26, 2016 at 11:02

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 18 results - 1 through 18 (of 18 total)

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

8theme customization service

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.