Hi boys and girls,
I am using both STS and HTC and found a problem. With both enabled and active I get twice the line: <metahttp-equiv="Content-Type"content="text/html; charset=iso-8859-1">.
Page source header:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html $htmlparams>
<head>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>fairkopen.nl | Uw webwinkel voor Fairtrade producten - fairkopen.nl</title>
<meta name="Description" content="mooie fairtrade kado's en (woon)accessoires - mooie fairtrade kado's en (woon)accessoires" >
<meta name="Keywords" content="Kado, Cadeau, Relatie, Geschenk, Fairtrade, fair trade, accessoires, eerlijke handel , Kado, Cadeau, Relatie, Geschenk, Fairtrade, fair trade" >
<meta name="googlebot" content="all" >
<meta name="robots" content="noodp" >
<meta name="slurp" content="noydir" >
<meta name="robots" content="index, follow" >
<link rel="canonical" href="http://www.fairkopen.nl/" >
<!-- EOF: Header Tags SEO Generated Meta Tags -->
<base href="http://www.fairkopen.nl//">
I tracked it down to these two parts of code/files:
includes/header_tags.php:
// ALL OTHER PAGES NOT DEFINED ABOVE
default:
$header_tags_array['title'] = tep_db_prepare_input($defaultTags['default_title']);
$header_tags_array['desc'] = tep_db_prepare_input($defaultTags['default_description']);
$header_tags_array['keywords'] = tep_db_prepare_input($defaultTags['default_keywords']);
break;
}
echo ' <me[color=#0000FF]ta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />'."\[/color]n";
echo ' <title>' . $header_tags_array['title'] . '</title>' . "\n";
echo ' <meta name="Description" content="' . $header_tags_array['desc'] . '" >' . "\n";
echo ' <meta name="Keywords" content="' . $header_tags_array['keywords'] . '" >' . "\n";
includes/classes/sts.php:
// Load up the <head> content that we need to link up everything correctly. Append to anything that may have been set in sts_user_code.php
// Note that since v3.0, stylesheet is not defined here but in the template file, allowing different stylesheet for different template.
$this->template['headcontent'] = $this->template['headcontent'].'';
$this->template['headcontent'] = $this->template['headcontent'].'[color=#0000FF]<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">'[/color] . "\n";
$this->template['headcontent'] = $this->template['headcontent'].$this->template['headertags']. "\n"; ;
$this->template['headcontent'] = $this->template['headcontent'].'<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '">' . "\n";
$this->template['headcontent'] = $this->template['headcontent'].get_javascript($this->template['applicationtop2header'],'get_javascript(applicationtop2header)');
$this->script->replace($this->template); // Module can make tricks here, just before replacing, like using own content template
If this is the problem, how do I turn of one of the '<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">' lines smartly (so not just comment it out, but if-it or something)?
Greetz,
René