Having Only the Post Title as the Meta Title?
-
I have amended line 8 of header.php in an effort to remove the ‘blog name > blog archive” portion of the meta title and to just have the post title as my meta title.
From the following line:
<title><?php bloginfo(’name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
I removed the this portion:
<?php bloginfo(’name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?>
so that the following is left:
<title><?php wp_title(); ?></title>
and am now left with meta titles as follows:
“> post title” (the “greater than” sign is like a double arrow).
How would I remove the double arrow at the start so that the first character of the meta title is the first letter of my post title?
- The topic ‘Having Only the Post Title as the Meta Title?’ is closed to new replies.