WordPress SEO by Yoast – Titles not working


Where is the separator I chose with Yoast?

Recently I came across this post on wordpress.org, which hasn’t been answered. This post might help someone else, who is dealing with the same issue (as I was earlier today) and cannot find the solution.

1. Go to: Header.php file


// replace: 
<title> 

<?php global $page, $paged; 

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

bloginfo( ‘name’ ); 

$site_description = get_bloginfo( ‘description’, ‘display’ ); 

if ( $site_description && ( is_home() || is_front_page() ) ) echo ” | $site_description”; 

if ( $paged >= 2 || $page >= 2 ) echo ‘ | ’ . sprintf( __( ‘Page %s’), max( $paged, $page ) ); ?>
 
</title> 

// with: 

<title><?php wp_title(‘‘); ?></title>

2. Dashboard – SEO – choose Titles & Metas, select your chosen separator, save.

3. SEO by Yoast will take care of your titles and will add the separator you chose earlier between the page title and a site name. example: Your blog title | site name.

4. If you would like to change the page title, you can do so on the appropriate page, under SEO title, where you type your new page title and you must add a space and the separator manually!!!. Whatever you see in the snippet preview will show up in the browser’s window and in the search engine results page (SERP).

Example: Blog Title | Site Name.

One comment:

Leave a Reply

Your email address will not be published. Required fields are marked *