WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Problem with SEO Title

[Resolved] Problem with SEO Title

  • I’ve noticed that if I input an SEO title, Google shows the blog title, followed by SEO title, without a space in between. It looks like this:

    MyBlogPlease enjoy my latest post

    Naturally, I’d like the display to look more like this:

    MyBlog | Please enjoy my latest post

    How can I correct this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • To update my post, I’m using this script in header.php:
    <title><?php bloginfo('name'); ?><?php wp_title('|'); ?></title>

    With WordPress SEO active, I see this when I view the page source:

    MyBlogPlease enjoy my latest post

    With WordPress SEO inactive, I see this:

    MyBlog | Please enjoy my latest post

    Clearly, something’s up. Is there a setting in WP SEO that will let me display the titles correctly?

    OK, then. This seems to produce the desired result:

    <title><?php bloginfo(‘name’); ?> | <?php wp_title(”); ?></title>

    Unless Joost has anything to add, this concludes my conversation with myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Problem with SEO Title’ is closed to new replies.