Yoast SEO
[Plugin: WordPress SEO by Yoast] titles are not showing the correct title,,,, again.... (3 posts)

  1. noslan
    Posted 4 years ago #

    Y with your WP plugin my sites show a title in browser not correctly? it shows a title from another post and this is not exactly a good seo, you know....


  2. SuperFastCars
    Posted 4 years ago #

    You need to go to this file;
    wp-content/themes/(your theme folder)/header.php

    Find this;
    <title><?php (a bunch of random code) ?></title>

    To this;

    	if(is_home() || is_front_page()) {
    		echo bloginfo("name") . " | " . bloginfo("description");
    	} else {
    		echo wp_title('', true, 'right');

    Once you do that, you will need to force a refresh, you can clear your browser cache. Or you can press ctrl + F5 in most browsers to force a refresh. (Additionally if you are using a cache plugin, you will need to go in, and force the plugin to recreate the cache.)

    He had to change wp_title() code to make title changes possible with this plugin.

    Also, it would be helpful if you gave your website? :)

  3. noslan
    Posted 4 years ago #


    Thanks, working perfectly!!!!

    The original code of tittle div was:

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    Replacing it, now works fine, really thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic