WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
title snafu (2 posts)

  1. matrixsurfer
    Member
    Posted 2 years ago #

    This is just driving me bonkers, and I'm sure it is an easy answer. My snippet title is "Web Design in Albuquerque - Creatively Making your Websites Pay" and yet the title that shows up in the source (and of course thus to the search engines) is "<title>Web Design in Albuquerque - Creatively Making your Websites PayWeb Design in Albuquerque</title>"

    for the life of me and can't figure out how to make the 'web design in albuquerque' portion at the end disappear. If I choose your 'overwrite' option, I end up with nothing in the title. this has got to be the dumbest of noob question but I sure appreciate your answer

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic