WordPress.org

Forums

WordPress SEO by Yoast
Title Issue (25 posts)

  1. reneepawlish
    Member
    Posted 3 years ago #

    Hi, in using this plug-in the title at the top of the page (sorry I am not tech savvy when it comes to blogs) displays like this:
    "How To Use TriberrTo Become A Writer"
    As you can see, it does not put a space between the blog post title and the title of the blog itself.
    How do I fix this? And please, if you say something like "put this code in the header" or something like, please walk me through how to get to that place :) It will save me a lot of time trying to find where to make the fix.
    Many thanks, I'm still trying to figure out a lot, but I do like the plug-in.
    Renee

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

  2. Primitive
    Member
    Posted 3 years ago #

    Under SEO >> Titles

    In the "Post" section under "Title template" you need the following
    %%title%% | %%sitename%%
    With this you have the pipe ( | ) seperator, but you could change this to whatever you like such as a hyphen ( - ) or whatever you like.

    If this doesn't fix your problem, make sure that in your theme's header.php file your title tags look like this
    <title><?php wp_title(''); ?></title>

  3. reneepawlish
    Member
    Posted 3 years ago #

    Forgive me, I'm not an expert here.
    When you say in the post section under "Title Template", where do you mean? On "Homepage Title Template"? or where? there are numerous places to put this code.
    Also (I've run into this before), many will say "in your theme's header.php" change etc - but no one says where to find this. I've searched on the Internet and can't find this - where do I go?
    I did try to put the code on "Homepage Title Template" but it didn't change anything so I am lost. My apologies if this is basic and I'm missing it.

  4. kletskater
    Member
    Posted 3 years ago #

    go to your wp-admin - appearence - theme editor there you will find your header.php file

  5. reneepawlish
    Member
    Posted 3 years ago #

    yes, but where in here? If I go into theme, there is no header.php file. I am running Twenty Ten 1.2 by the WordPress team and in the theme page, there are links to widgets, menu, background and header, but I don't see a header.php file anywhere.

  6. reneepawlish
    Member
    Posted 3 years ago #

    Never mind found it :) Let me see if I can get this to work, thanks!

  7. reneepawlish
    Member
    Posted 3 years ago #

    I don't want to mess this up, here's what's in the title tag

    <title><?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', 'twentyten' ), max( $paged, $page ) );

    ?></title>

    where do I add the code?
    Thanks!

  8. Primitive
    Member
    Posted 3 years ago #

    Replace all of that with
    <title><?php wp_title(''); ?></title>

  9. reneepawlish
    Member
    Posted 3 years ago #

    primitvenet, I replaced the code and it worked but I have another question :)
    Before it said "How To Use TriberrTo Become A Writer"
    Now it just has the the title of the blog post (so "How to Use Triberr")
    From an SEO standpoint, does this matter?
    Many thanks to you and kletskater for your help!

  10. Primitive
    Member
    Posted 3 years ago #

    In Settings >> General
    What have you got under Site Title and Tagline?

    Under SEO >> Titles
    Did you put the following in the Post section under Title Template?
    %%title%% | %%sitename%%

    The title should read:
    How To Use Triberr | To Become A Writer

  11. reneepawlish
    Member
    Posted 3 years ago #

    Oops, I had that, then took it all out when things didn't work. I'll add it back in. Thanks for helping a newbie :)

  12. reneepawlish
    Member
    Posted 3 years ago #

    Actually, that didn't work...I put it under SEO - Titles - Post - Title template.

  13. Primitive
    Member
    Posted 3 years ago #

    Hmmm...

    What's your URL?

    And what have you got in Settings >> General >> Site Title and Tagline?

    Do you have any caching plugins enabled? eg. WP Super Cache or W3 Total Cache?

  14. reneepawlish
    Member
    Posted 3 years ago #

    http://tobecomeawriter.com
    Site Title: To Become A Writer
    Tagline: Blog home of master wordsmith Renée Pawlish, author of mystery novels, horror books, and the Writers Workshop.

    This shows up if you're on the main page, but if you go to a link, it just shows the title of the blog post - it's fine, better than:
    How To Use TriberrTo Become A Writer but if it negatively affects SEO, I would want it different :)

  15. Primitive
    Member
    Posted 3 years ago #

    Hmmm... this is odd.

    Try ticking the "Force rewrite rules" under SEO >> Titles
    It's not a perfect solution, but should work if you've got the right stuff between your <title> tags and in the SEO >> Title form.

  16. Primitive
    Member
    Posted 3 years ago #

    This may sound obvious - but under SEO >> Titles you are scrolling down to the bottom of the page and hitting save after making the changes, right?

  17. reneepawlish
    Member
    Posted 3 years ago #

    Yes, I've saved, lol. And I tried the force rewrite, still just gives the blog post title. This is what I have in the header.php

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

  18. Primitive
    Member
    Posted 3 years ago #

    Just so we're clear <title><?php wp_title(''); ?></title> has two single apostrophes '', *not* a single quotation-mark " - double check that for me could you?

    What you seem to have on the page at the moment is the output of the default wp_title function without Yoast's plugin having any effect.

    The only reasons I can think of for this is that either the plugin isn't saving your inputs (%%title%% | %%sitename%%), or its not loading through the template properly...

    What other plugins are you running?

  19. reneepawlish
    Member
    Posted 3 years ago #

    Well, I copied and pasted what you suggested, and it does look correct, but I did it again with '' to be sure.
    Running askimet, Facebook Like Box, Google Analytics, Image Widget, Include Javascript Widget, Jetpack, Redirection, SEO Slugs, Sexybookmarks, Sample Image Widget, Subscribe2, WordPress Importer, WordPress SEO

  20. Primitive
    Member
    Posted 3 years ago #

    I'm at a complete loss I'm afraid - without seeing the code I'm not really sure what to say...

    The only plugin I don't recognise there is SEO slugs, so I suppose it could be that causing the conflict but I doubt it to be honest.

    One last thing would be to try updating your most recent post (just edit the post and hit update without changing anything) and seeing of that flushes things. You can untick the force rewrite rules as well.

    If this doesn't do it, that's the end of theories from me sadly :(

  21. reneepawlish
    Member
    Posted 3 years ago #

    many thanks -
    do you want me to paste the whole code?

  22. Primitive
    Member
    Posted 3 years ago #

    Could you please give exactly what it says in the top six boxes under SEO >> Titles

    Also can you post all of what is in /wp-content/themes/twentyten/header.php

    (You can find it under Appearance >> Editor >> Header (header.php)

    These should be the only places you need to edit, so there must be an error in there somewhere...

  23. reneepawlish
    Member
    Posted 3 years ago #

    Sorry, busy couple of days. Here's the code:

    All are blank except for Post >> Title Template which has

    %%title%% | %%sitename%%

    Appearance >> Editor >> Header (may be more here than you need)

    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="main">
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(''); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    */
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>
    </head>

  24. Primitive
    Member
    Posted 3 years ago #

    Sigh. I can't see a problem there...

    Could you try something for me:

    Under SEO >> Titles >> Page >> Title Template

    Can you add this again:
    %%title%% | %%sitename%%

    Then we should be able to see if the problem is just affecting posts or everything.

  25. reneepawlish
    Member
    Posted 3 years ago #

    The little window just has the title of the blog post, not post and title of the blog - does this negatively affect SEO?

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic