Page Title Problem (5 posts)

  1. matt7267
    Posted 11 years ago #

    Hi everyone. I recently changed my blog so that the page titles would be the post title (<title><?php wp_title(); ?></title>).

    The problem is now my home page has no title. Any ideas as to how to fix this?

    FYI my blog is at http://hometownquotes.com/blog/ if it helps.

    Thanks in advance.

  2. ohdear
    Posted 11 years ago #

    Is there any particular reason, you didn't want your blog name in the page title, on individual entries? I find it's good for SEO purposes, otherwise:

    <?php if(is_home()) : ?>
    <?php bloginfo('name'); ?></title>
    <?php else : ?>
    <title><?php wp_title(); ?></title>
    <?php endif; ?>

  3. matt7267
    Posted 11 years ago #


    Indeed I DO want a page title on my home page, but using the code that I am using to name the other page titles it wont give the home page a title.

    Can you elaborate on what I can do with the code you listed above?


  4. ohdear
    Posted 11 years ago #

    I'm not sure if I understand correctly, the default is
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    which on the home page the page title is "Your Blog Name", and individual entries is "Your Blog Name » Your Post Title" And I was wondering why you didn't want the blog title in the page title of your individual entries?

    With <title><?php wp_title(); ?></title> You don't have page titles for archives either - http://www.hometownquotes.com/blog/index.php?m=200502

    Now with the code, on the home page the page title is "Your Blog Name" while the individual entries have "» Your Post Title" as their page title.

    Since you're using WordPress 1.2.2, it actually should something like:

    <?php if (!$single) : ?>
    <title><?php bloginfo('name'); ?></title>
    <?php else : ?>
    <title><?php wp_title(); ?></title>
    <?php endif; ?>

    Hope that helps you :)

  5. cslater
    Posted 10 years ago #

    I have my index page title incorporated in the image I am using at my site http://www.cliffslater.com. I would like to eliminate the "Second thoughts" that is called automatically because at the moment it is in the title twice.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.