Put meta tag on top of header section in typo3


 
In order to prevent quirks mode in IE9 I need to add this lines at the very top of every HTML page:

You can write the whole header by yourself, by adding disableAllHeaderCode = 1 to your typoscript or you can hack it by adding your meta tag directly to the head tag:

page.headTag = <head><meta http-equiv="X-UA-Compatible" content="IE=edge" />

Place this at your typoscript

meta.X-UA-Compatible = IE=edge,chrome=1

httpEquivalent: (Since TYPO3 4.7) If set to 1, the http-equiv attribute is used in the meta tag instead of the “name” attribute. Default: 0.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

3 thoughts on “Put meta tag on top of header section in typo3

  1. Pingback: Put meta tag on top of header section in typo3 | toniravsadhu

  2. This may respond to my needs but I’m absolute beginner to TYPO3. Never used before.

    page.headTag =
    meta.X-UA-Compatible = IE=edge,chrome=1

    I have to adding the meta into the the webpage generated by TYPO (version 4.2.8)
    My questions.
    WHERE SHOULD I ADD THIS.
    WHICH FILE ?
    ON THE SERVER OR VIA TYPO INTERFACE ?

    Thanks for your back

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s