Support » Plugins and Hacks » Hacks » "title" not showing page on custom front page

  • Have created a custom front page for my home page however when I do this the title does not show, I just get ” – site title”. Can anyone help me with the hack in the header that I need to produce to get it to show something custom?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you give some more details? Perhaps the code you’re using, where this custom title is coming from, etc?

    Hi Rebecca
    Sure, here is what is in my header.php file that is pulling the code.

    [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>
    [/code]

    Thanks

    *Bump – this is still a headache.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"title" not showing page on custom front page’ is closed to new replies.