ALTexasGirl
Member
Posted 3 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!
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() ) { ?> » 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() ) { ?> » <?php } ?> <?php wp_title(); ?></title>
(just removed the "Blog Archive" bit.)
ALTexasGirl
Member
Posted 3 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!
The » is the » you're seeing in the title.
You can replace that with a ">" if so inclined I reckon.
ALTexasGirl
Member
Posted 3 years ago #
That worked - Thanks and God Bless!