The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP SEO and WPFolio 1.75 (3 posts)

  1. jimtron
    Posted 4 years ago #

    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:

    	<?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); } } ?>

    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.

  2. Ming Sheu
    Posted 4 years ago #

    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.

  3. jimtron
    Posted 4 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic