Adding the Content-language Meta Tag to a Rapid Weaver Theme

Meta Mate provides an excellent way to manage a Rapid Weaver project’s meta data, but due to the way Rapid Weaver handles meta tags however, it is not possible to use it to add some specific meta tags.

Sometimes one needs to add special meta tags to a project, like the “Content-Language” meta tag, which tells robots which language is used on a site. For example:

<meta http-equiv="Content-Language" content="ru" />

One way to add such a custom meta tag to a Rapid Weaver project is to add it directly to the theme’s index.html file.

First, duplicate the project’s theme, and reveal it’s contents in Finder.

Duplicate project's theme

Open the theme’s index.html file in your favourite text editor. I use Sublime Text 2 – if you don’t have a source code editor, I heartily recommend it.

Add the meta tag to the index.html file. It important to remember not to paste anything above the following tag, else some version of FireFox will have some issues rendering a page.

<meta charset="utf-8" />

Here is an example of where I have pasted my Content-language tag to my duplicated theme.

Save the file, then export & view the source of your website to confirm the presence of your meta tag!

Did you find this tutorial helpful? What additional meta tags do you find useful in your projects?

Comments (13) | Trackback