• Resolved whirlgirlz

    (@whirlgirlz)


    I’m trying to obtain this as a page title, using Yoast’s snippet variables:
    Page title: Site title

    But what I’m getting is:
    Page title : Site title

    I’ve tried deleting the space between snippet variables in the admin but Yoast automatically inserts it back in after save. I’ve pored through WP files looking for the space in PHP but cannot find it.

    Anyone else seen this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter whirlgirlz

    (@whirlgirlz)

    I looked through PHP docs for $sep instead of wp_title — and found where a space is being inserted. But oddly, it didn’t remove it on the front end.

    Here are the WP docs I modified:

    /wp-includes/general-template.php
    I removed the space from this line: ” $sep”, in several locations

    /wp-includes/formatting.php
    I removed the space from this line: $sep = ‘ ‘, in one location

    Perhaps this is being controlled by Yoast and not WP? Any ideas?

    • This reply was modified 5 years, 10 months ago by whirlgirlz.
    • This reply was modified 5 years, 10 months ago by whirlgirlz.
    Plugin Support amboutwe

    (@amboutwe)

    A feature request is currently open for this issue. If you would like to follow the progress of the request, you can do that here: https://github.com/Yoast/wordpress-seo/issues/12004

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot remove space before separator in title tag’ is closed to new replies.