Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Strange meta issue


  • You cannot reply to this topic
3 replies to this topic

#1 sitefire

  • Community Member
  • 31 posts
  • Real Name:Craig

Posted 07 November 2009, 07:52

I'm having a strange issue I just noticed of multiple instances of a content type meta tag I'm hoping someone may be able to help me with.
I have OSC RC 2.2a STS 4.5.8 and HTC

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">   **Instance 1**
 <title>Our Title Here</title>
 <meta name="Description" content="Our description here." />
 <meta name="Keywords" content="Our Keywords Here" />
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />  **Instance 2**
<!-- EOF: Header Tags SEO Generated Meta Tags -->

Is this even something I should worry about or will browsers and search engines just ignore the 2nd instance, of course I would like to track down and remove the second instance so any ideas are greatly appreciated.

#2 jigga1234

  • Community Member
  • 212 posts
  • Real Name:jimbobaggins
  • Gender:Male

Posted 07 November 2009, 10:06

Hi because you are using STS I would imagine that you have a template with the <-- start header tags seo--> ( or something similar ) in your html <head> code. You will also have the header tag code placed into all of your root files the code will be like this.
<?php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
  require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?> 
  <title><?php echo TITLE; ?></title>
<?php
}
?>

You will need to remove this and replace it with...
{
 
  <title><?php echo TITLE; ?></title>
<?php

?>
.

This should remove the doubling up of your tags and should just use the one off your template.

Or you can just remove the one of your template if you dont want to edit all your files.

Did this help?

#3 multimixer

  • Community Sponsor
  • 3,437 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 07 November 2009, 10:16

If you remove the <!--$headcontent--> tag from your template, you will loose any metainformation !

I just checked and found out that even having just this in ie my index.php
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
I'm getting the duplicate line as above.

I think this need to be posted in the header tags seo forum or the sts forum

EDIT: I just see that you have HTC installed, I have header tags SEO version 315

Edited by multimixer, 07 November 2009, 10:17.


#4 multimixer

  • Community Sponsor
  • 3,437 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 07 November 2009, 14:57

I found whats going on and posted in the header tags SEO forum