Sir Pretender wrote:We had a problem with Yoast SEO as well and specifically with the pages' titles. We kinda tried everything but the problem wasn't solved. So instead we used another SEO plug-in (All in One SEO pack) which responds fairly well
JackYu wrote:In my eyes, Yoast is still the most awesome SEO plugin that I don't want to miss. Getting this to work is actually no big deal:
Yoast hooks into wp_title() with a filter to change it and include SEO features. The Theme however, already includes a rather complex way to generate a title based on your sub-page. All you need to do is change:
<?php //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', 'made' ), max( $paged, $page ) );
<?php wp_title( '|', true, 'right' );
This just replaces the made theme functionality with the standard WP function and leaves the rest to Yoast.
Users browsing this forum: No registered users and 2 guests