WordPress.org

Support

Title Help

  • My default set up created titles like “Post Name | Site Name,” which I liked. I just want to change the home page to show “Site Name | Description”

    I don’t usually play with the PHP so right now I have the home page correct but the description also shows on the rest of the pages after “Post name | site name”.

    <?php
    if( function_exists(is_tag) && is_tag() )
    { _e('Tag:'); }
    elseif( is_category() )
    { _e('Category:'); }
    elseif( is_404() )
    { _e('Not found'); }
    elseif( is_search() )
    { _e('Search'); echo " &quot;" . wp_specialchars($s, 1) . "&quot;"; } wp_title('');
    if( ! is_home() )
    { echo " | "; } bloginfo('name');
    if( is_home() )
    { echo " | ";} bloginfo('description');
    ?>

    I’m pretty sure it’s a simply modification. Any help is appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Title Help’ is closed to new replies.
Skip to toolbar