• Resolved lakerfan1

    (@lakerfan1)


    I am trying to get my static home page title to show without a hyphen but I am not having any success.

    Here is my code:

    <title>
    <?php
    if (function_exists(‘is_tag’) && is_tag()) {
    single_tag_title(“Tag Archive for “”); echo ‘” – ‘; }
    elseif (is_archive()) {
    wp_title(”); echo ‘ Archive – ‘; }
    elseif (is_search()) {
    echo ‘Search for “‘.wp_specialchars($s).'” – ‘; }
    elseif (!(is_404()) && (is_single()) || (is_page())) {
    wp_title(”); echo ‘ – ‘; }
    elseif (is_404()) {
    echo ‘Not Found – ‘; }
    if (is_home()) {
    bloginfo(‘name’); echo ‘ – ‘; bloginfo(‘description’); }
    else {
    bloginfo(‘name’); }
    if ($paged>1) {
    echo ‘ – page ‘. $paged; }
    ?>
    </title>

    Can someone please help?

    site

    I get a hyphen at the beginning of the title. I want the hyphen to remain when secondary pages and the titles are presented but I do not want the hyphen on the front page.

    Thanks in advance!

  • The topic ‘Title for static home page’ is closed to new replies.