WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. noslan
    Member
    Posted 2 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....

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. SuperFastCars
    Member
    Posted 2 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;

    <title><?php
    	if(is_home() || is_front_page()) {
    		echo bloginfo("name") . " | " . bloginfo("description");
    	} else {
    		echo wp_title('', true, 'right');
    	}
    	?></title>

    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
    Member
    Posted 2 years ago #

    hi!

    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

About this Topic