• 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'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
    	<?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
    	<?php if ( is_category() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php single_cat_title(); ?><?php } ?>
    	<?php if ( is_year() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php the_time('Y'); ?><?php } ?>
    	<?php if ( is_tax() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;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'); ?>&nbsp;|&nbsp;<?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)
  • All that the WPFolio code does is output the title based on the page type. If you are happy with how the WordPress SEO titles work then there’s no problems. Your change won’t break anything.

    Thread Starter jimtron

    (@jimtron)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP SEO and WPFolio 1.75’ is closed to new replies.