Netorica
Netorica

Reputation: 19327

<title> tags in IE9 not working

Ok I have a strange issue again with Internet Explorer but this only happens in Internet Explorer 9 version. The problem is simple, the title does not show what I put inside my tags. And the title that is show is the hostname of the URL I am currently browsing.

The situation: my code <title>My Site</title>

the title must be "My Site" browsing http://localhost/mysite
but IE9 shows "localhost" browsing http://localhost/mysite

Was someone already encountered this kind of problem? I only experience this in IE9 and not on its lower versions. On other browsers this works fine. What's the problem?

NOTE: I have already a ton of codes in my page but it doesn't do anything about the element. I only use jquery as my client-side script and yii as my php framework

Upvotes: 0

Views: 933

Answers (1)

swapnesh
swapnesh

Reputation: 26732

In Yii Framework try to add title something like this -

<title><?php echo CHtml::encode($this->pageTitle); ?></title>

Check the link for further reference Link

UPDATE

Check cufon font, as this may sometimes cause problem.

Upvotes: 1

Related Questions