WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Words appear twice in the title bar

[Resolved] Words appear twice in the title bar

  • For some reason the title of my blog and the page/post appear twice in my title bar.

    Example 1 – Home page
    Title bar: “Mission: Costa Rica Mission: Costa Rica – a blog from the mission field”

    (“Mission: Costa Rica” is the title and “a blog from the mission field” is the blog description)

    Example 2 – About page
    Title bar: “Mission: Costa Rica >> About. About.”

    I can’t figure out what I need to fix in the header.php file. Here’s what I have for the title tags section:

    <title><?php bloginfo(‘name’); ?> <?php wp_title(); ?><?php if (is_single() || is_page() || is_archive()) { wp_title(”,true); } else { bloginfo(‘name’); echo(‘ — ‘); bloginfo(‘description’); } ?>
    </title>

    If you have any suggestions, please let me know. Thanks in advance. By the way, my blog address is http://www.missiongocostarica.org. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fixed my own issue. I just started testing things out and came up with a solution:

    <title>
    <?php bloginfo(‘name’); { echo ‘ | ‘; } ?>
    <?php bloginfo(‘description’); { echo ‘ | ‘; } ?>
    <?php wp_title(‘ ‘); ?>
    </title>

    Well, I thought this was fixed! Now the title bar looks good, but I’m getting an error message on the first line of each of my posts:

    WARNING isterxmlexpatnonvalid->parse(): expat: mismatched tag [380/2/5]

    Help!!!

    Thanks in advance.

    Issue resolved. I ran an RSS validation and found that a category I had with ‘&’ was causing an error. I replaced ‘&’ with ‘,’ and it fixed the issue. Case closed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Words appear twice in the title bar’ is closed to new replies.
Skip to toolbar