hey all...
i don't know php very well, i need to add a custom title to a home page in a banner (or leader) normal page titles for all pages and 404, and blog for the blog pages.
i already have the snippet to remove the default page titles, i just need to put them back where i want them
this is what i used before, and it works great, but i have nothing in there for if is_front_page
function add_banner() {
global $id, $post, $authordata;
if (is_page()) {
echo ('<div id="banner"><div id="banner-container"><h1>' . get_the_title() . "</h1></div></div>\n");
} elseif (is_404()) {
echo ('<div id="banner"><div id="banner-container"><h1>' . __('Not Found', 'thematic') . "</h1></div></div>\n");
} elseif (is_home() || is_single()) {
echo ('<div id="banner"><div id="banner-container"><h1>Blog</h1></div></div>');
}
}
add_action('thematic_belowheader', 'add_banner');
as soon as i add
} elseif (is_front_page()) {
echo ('<div id="banner"><div id="banner-container"><h1>front page title</h1></div></div>');
}
i just get a white screen
thanks in advance...J