Forum Moderators: coopster
I'm trying to change the title on just my home page.
Can anyone help me where I should insert it and how I should insert it in this code...
<title><?php if ( get_bloginfo('version') < '2' ) : echo wp_title('',false); if (!is_home() ) : echo ' - '; endif;
elseif ( is_search() ) : echo wp_specialchars($s).' - ';
elseif ( is_category() ) : single_cat_title(''); echo ' - ';
elseif ( is_year() ) : echo get_the_time('F').' - ';
elseif ( is_month() ) : echo get_the_time('F Y').' - ';
elseif ( is_day() ) : echo get_the_time('F jS, Y').' - ';
elseif ( is_404() ) : echo "Not found - ";
elseif (!is_home() ) : if ( get_the_title() ){ the_title(); }else{ echo "Untitled"; }; echo " - ";
endif // is_search()?>
<?php bloginfo('name')?></title>
Yes, it's wordpress.
But the problem is I want to have the title
"Homepage Keyword phrase - DomainName.com" on the home page
and
"Post title - Domain name" on the post pages.
If I do it through the back office then I can only make the page title on the home page
"Post title - Blog title"
So in other words I want a phrase just to appear on the home page title.
You may be looking for this [codex.wordpress.org].
You can overload most of the tags and put whatever you want in there.
I'm going to upgrade my blog to WP 2.1 sooner or later, but I just had a scare when I upgraded my gallery to Gallery 2, so I won't make it a sooper priority.
Thanks for your help!
elseif (is_home() ) { echo "Homepage Keyword phrase"; echo " - "; }
elseif (is_home() ) : echo "Homepage Keyword phrase"; echo " - ";
[edited by: DavidBain at 3:01 pm (utc) on Feb. 9, 2007]