• On my site, I had it set up so only page title displays between the title tags and not my blog name via the following code:

    <title><?php wp_title(”,true,’right’); ?></title>

    Since I upgraded to 2.7.1 my homepage no longer has a page title but my other pages do. Any idea why the homepage title no longer displays? Again everything worked perfectly prior to upgrading.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter RyanL

    (@ryanl)

    One thing I forgot to note. My site is built using only pages. My home page is set via settings / reading and then selecting one of my pages from the dropdown menu to be my home page.

    [moderated–bump removed. Please refrain from bumping as per Forum Rules]

    a link to your website might help

    I have a similar issue that I do not understand. On my site Kung Fu Destiny If I have title tags in the header.php it will display the title the way it wants regardless of how i place the bloginfo(‘name’) and wp_title() in relation to each other. I can even have an empty title tag such as <title></title> and it will still display a title the way it wants too. If I remove the title tags completely it will not have any title at all.

    Does anyone have any idea what is going on?

    Thanks

    Thread Starter RyanL

    (@ryanl)

    mtalbert do you have an plugins running that may be controlling your page title?

    In my case I’m not running any plugins at all. And again prior to upgrading the code I was using was working fine.

    <title><?php wp_title(”,true,’right’); ?></title>

    What it did was display the page title in the title tag of each page without listing the blog name. I only want the page title to display.
    Now with the above code since upgrading my home page has no title but my other pages do.

    I’m not running any plugins that should be affecting it that I know of.

    I didn’t realize the oddity in mine until I decided to update my blogname with the Chinese Characters for it. When I did my home page still displays “Kung Fu Destiny” without the characters while the Articles page would have “Articles | Kung Fu Destiny 功夫命運”. As long as a title tag is present at all it will somehow determine what to put in there regardless of the code i insert between the title tags.

    Thread Starter RyanL

    (@ryanl)

    mtalbert yeah that’s exactly what I’m finding to be true with WP 2.7.1
    The home page seems to be subject to different rules than the rest of the pages as far as the title is concerned.

    Hopefully someone will know the answer and can help us out 🙂

    [moderated–bump removed. Please refrain from bumping as per Forum Rules]

    lutetia

    (@lutetia)

    I’ve got the same problem. My front page displays the URL as the title. The theme I’m using does not have a general_template.php file, so I could not implement the solution above.

    mikey1

    (@mikey1)

    Its not possible to comment on the OP because no site url.
    @lutetia if you are using All in one SEO then make sure the blog title is the same as in general settings, this can sometimes cause page title problems.
    mike.

    lutetia

    (@lutetia)

    Not sure what All in one SEO is…..I’m using the Prosense theme, but I uploaded a header image and did not type anything in the blog name and description under general settings as if I do it appears to float over my header image.

    My front page is a static page with a title. All the other pages show the post name at the top of the page (browser bar) as well as in the URL. Except for the homepage, which only shows URL in both places…

    lutetia

    (@lutetia)

    I just noticed there’s no permalink displaying under the page title when I go to edit the static home page….any idea how I could set a permalink this for the static page?
    Without a proper title/permalink showing I’m concerned that the most important page of my site will be overlooked by the google crawlers.

    lutetia

    (@lutetia)

    Well, I’ve inserted this:

    <title>My Site Name </title>

    into my header.php file just above this code:

    <title><?php if(is_home() || is_search()) { bloginfo(‘name’); echo ‘ – ‘; bloginfo(‘description’); } else { wp_title(”) ;} ?></title>

    The result is that now I have a title appearing in the browser bar of my static home page (what I wanted), but the same title also appears in the browser (top of browser, not address bar) of ALL my pages.

    In other words, the title and permalink no longer match for the rest of the pages.

    Any way to tweak this so it all works properly, i.e each page shows its own title in the browser bar?

    lutetia

    (@lutetia)

    OK everybody, I installed the “All in one SEO plugin” and everything is working like a charm! Thanks for the tip, Mikey1.

    I had the same problem.
    Now I’m new to WP and I’m no php expert so keep that in mind.
    Since the problem only happens on the front page I added an elseif to the php code between my title tags in my header.php.
    My code looks like this:
    <title><?php if (is_home()) { echo bloginfo('name'); } elseif (is_front_page()) { echo 'my_homepage_title'; } ... ?></title>
    It may not be the best solution, but it works.
    According to the link iridiax posted, the bug should be fixed in 2.7.2.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Page Title Problem’ is closed to new replies.