WordPress.org

Ready to get started?Download WordPress

Forums

"title" not showing page on custom front page (4 posts)

  1. .jpg
    Member
    Posted 2 years ago #

    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

  2. Rebecca Schaefer
    Member
    Posted 2 years ago #

    Can you give some more details? Perhaps the code you're using, where this custom title is coming from, etc?

  3. .jpg
    Member
    Posted 2 years ago #

    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

  4. .jpg
    Member
    Posted 2 years ago #

    *Bump - this is still a headache.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.