Editing Title Tag
-
Below I pasted what I currently have generating my title tag. It puts in the page or link name. Not very useful if the page name is “contact info”. Is there any way I can stick the phrase “Connecticut Photographers” before the page name? For example if the page name was “contact info”, the title tag would read “Connecticut Photographers Contact Info”
–current title tag–
<title>
<?php if (is_home () ) {
bloginfo(‘name’);
} elseif ( is_category() ) {
bloginfo(‘name’); echo ” – “; single_cat_title();
} elseif (is_single() || is_page() ) {
single_post_title();
} elseif (is_search() ) {
bloginfo(‘name’); echo ” search results: “; echo wp_specialchars($s);
} else { wp_title(”,true); }
?>
</title>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Editing Title Tag’ is closed to new replies.