WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Words appear twice in the title bar (4 posts)

  1. KenanFlagler01
    Member
    Posted 7 years ago #

    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!

  2. KenanFlagler01
    Member
    Posted 7 years ago #

    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>

  3. KenanFlagler01
    Member
    Posted 7 years ago #

    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.

  4. KenanFlagler01
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic