WP SEO and WPFolio 1.75
-
I’m using Yoast WordPress SEO with WPFolio 1.75. With the SEO plugin, the title tag in the header.php is supposed to be this:
<title><?php wp_title(''); ?></title>
In earlier versions of WPFolio, I think that’s how the title section was, but in 1.75 it looks like this:
<title> <?php if ( is_page() ) { ?><?php bloginfo('name'); ?><?php wp_title('|'); ?><?php } ?> <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?> <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?> <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> | <?php single_cat_title(); ?><?php } ?> <?php if ( is_year() ) { ?><?php bloginfo('name'); ?> | <?php the_time('Y'); ?><?php } ?> <?php if ( is_tax() ) { ?><?php bloginfo('name'); ?> | Media: <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?><?php } ?> <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | <?php single_tag_title("Tag Archive:", true); } } ?> </title>
I just tried replacing the second, long title section with the much shorter one, which Yoast SEO recommends, and it seems to work fine. Before replacing it, my titles were screwed up. I just want to make sure I’m not breaking anything by removing so much code.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP SEO and WPFolio 1.75’ is closed to new replies.