Support » Plugins » Remove “Blog Archive” title from Search Engine Headers

  • Resolved ALTexasGirl

    (@altexasgirl)


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.)

    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!

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

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

    That worked – Thanks and God Bless!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove “Blog Archive” title from Search Engine Headers’ is closed to new replies.