Changing the LANG meta tag on a per post basis

Community Forums Forums Design Tips and Tricks Changing the LANG meta tag on a per post basis

This topic is: not resolved

Tagged: , ,

This topic contains 1 reply, has 1 voice, and was last updated by  lostintime 3 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #109717

    lostintime
    Participant
    Post count: 55

    Hi everyone,

    I am looking for a way to change the LANG meta tag on a per post basis. Nearly all of my posts are written in German and have <html lang=”de-DE”> which is automatically applied by WordPress. Every once in a while I would like to publish an article in Dutch, such as this one:

    http://www.buurtaal.de/blog/als-niederlaender-in-deutschland

    In cases likes this I would like to be able to change the meta information to <html lang=”nl”>.

    Can anyone offer a suggestion as to how I would achieve this? I am using the Lifestyle Pro theme.

    Thanks in advance

    http://www.buurtaal.de/blog/
    #109853

    lostintime
    Participant
    Post count: 55

    Might this be something that could be accomplished by using a custom field? If so, I suspect I would have to add some PHP code to the functions.php file …

    Any tips would be greatly appreciated.

    • This reply was modified 3 months, 1 week ago by  lostintime.
    • This reply was modified 3 months, 1 week ago by  lostintime.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.