I'm trying to figure out how to remove a "-" that shows before my bloginfo('name') on the homepage. I am using a static page as the homepage. Basically I want it set up like:
Main Page (static page):
bloginfo('name'); echo ' - '; bloginfo('description');
and all other pages to be like:
wp_title(''); echo ' - '; bloginfo('name');
Here is the current code I have:
<title>
<?php
$prefix = false;
if (function_exists('is_tag') && is_tag()) {
single_tag_title('Tag Archive for "'); echo '" - ';
$prefix = true;
} elseif (is_archive()) {
wp_title(''); echo ' '.__('Archive',EWF_SETUP_THEME_DOMAIN).' - ';
$prefix = true;
} elseif (is_search()) {
echo __('Search for', EWF_SETUP_THEME_DOMAIN).' "'.wp_specialchars($s).'" - ';
$prefix = true;
} elseif (!(is_404()) && (is_single()) || (is_page())) {
//if ($prefix == true) {
wp_title('');
//echo ' - ['.is_bool($prefix).'] ';
echo ' - ';
//}
} elseif (is_404()) {
echo __('Not Found', EWF_SETUP_THEME_DOMAIN).' - ';
}
if (is_front_page()) {
bloginfo('name'); echo ' - '; bloginfo('description');
} else {
bloginfo('name');
}
if ($paged > 1) {
echo ' page '. $paged;
}
?>
</title>
Basically I would like the same structure above just a way to remove the " - " before the bloginfo('name') on the home page.