[resolved] Remove "Blog Archive" title from Search Engine Headers (5 posts)

  1. ALTexasGirl
    Posted 10 years ago #

    How can I program my meta tags/title description to not show "Blog Archive"?

    Currently when I look at my search engine results on Google, I normally see the header of "On the Baseline Tennis News > Blog Archive >Title of post. I'd like to just show the name of Blog and the title. My site is http://onthebaseline.com

    Can somebody help me by posting the code that I need to change in my header? Thanks!

  2. Chris_K
    Posted 10 years ago #

    Look in your theme's header.php. You'll likely have a line of code a lot like this:

    <title><?php bloginfo('name'); ?>
    <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

    I broke it up into multiple lines to help point out the "Blog Archive" embedded in there. It shows that (and appends post title) if is_single is true.

    You could probably change it to something like:
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; <?php } ?> <?php wp_title(); ?></title>

    (just removed the "Blog Archive" bit.)

  3. ALTexasGirl
    Posted 10 years ago #

    Handy Solo, thanks for the help. That did the trick. I hope this doesn't seem trivial, but when I look at the pages, I see two >> marks instead of just one. I know hardly anything about codes, so where should i remove this other > mark?

    Thanks!!! I really appreciate the help!

  4. Chris_K
    Posted 10 years ago #

    The &raquo; is the » you're seeing in the title.

    You can replace that with a ">" if so inclined I reckon.

  5. ALTexasGirl
    Posted 10 years ago #

    That worked - Thanks and God Bless!

Topic Closed

This topic has been closed to new replies.

About this Topic