• Andrewjmarino

    (@andrewjmarino)


    According to the WP SEO instructions, I should change the Title Section of my Header.php file to the following:
    <title><?php wp_title(”); ?></title>

    This (I think) is the complete Title Section of my Header.php file using a WP Weaver theme

    <title><?php
    if (weaver_getopt(‘ttw_hide_metainfo’)) {
    wp_title(”); /* this is compatible with SEO plugins */
    } else {
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;

    wp_title( ‘|’, true, ‘right’ );

    /* Add the blog name. */
    bloginfo( ‘name’ );

    /* Add the blog description for the home/front page. */
    $site_description = get_bloginfo( ‘description’, ‘display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;

    /* Add a page number if necessary: */
    if ( $paged >= 2 || $page >= 2 )
    echo ‘ | ‘ . sprintf( __( ‘Page %s’, WEAVER_TRANS ), max( $paged, $page ) );
    }
    ?></title>

    What exactly do I need to do to make this change correctly?
    I guess I can use the opt-out strategy and Force rewrites, but WP SEO says the other way is better.
    Thanks
    Andrew

    [ Signature moderated. ]

  • The topic ‘WordPress SEO Modify Title Pages’ is closed to new replies.