By tentonjim on
Hello...
I have noticed that, even on this, the Drupal site... there are 2 Content-Type charset=utf-8 declarations for utf-8 that appear in the head... how/where do you remove one of them? I have seen this in every Drupal install.
I am using foundation as a starter them to totally make a new theme.
Ex: from Drupal.org view-source...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Note: does not validate. We would like it to, but that would mean reduced user experience for the majority of our visitors. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
<title>Create Forum topic | drupal.org</title>
Thanks a lot!
Comments
Meta Tags..
... are automatically inserted into each Drupal page via the page.tpl.php template file (in your theme). It builds some of the HEAD tag by printing $head variable, which contains default meta tags among other things. The duplication may enter in with some complexities introduced with other advanced modules outside of basic installation. My sites do not have the duplication.
I would recommend you install and use the NODEWORDS module, which manages the area of meta tags quite nicely.
interesting
I am using nodewords but do not see any setting about overriding common meta tags such as the content-type... all seems to do with basic seo etc...
I ended up going into /includes/common.inc and commenting out 1 of the instances that generates the utf-8 content-type meta tag. Not optimal, will have to do again if I upgrade. I checked your learning site and you are right you only have one utf-8 meta tag being generated - any idea why?
Thanks!