osCommerce Community Support Forums: Strange meta issue - osCommerce Community Support Forums

Jump to content

Corporate Sponsor


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Strange meta issue Multiple instances of meta content type tag Rate Topic: -----

#1 User is offline   sitefire Icon

  • Find Posts
  • Group: Community Member
  • Posts: 31
  • Joined: 16-April 08
  • Real Name:Craig

Posted 07 November 2009 - 07:52 AM

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.
0

#2 User is offline   jigga1234 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 175
  • Joined: 04-July 08
  • Real Name:jimbobaggins
  • Gender:Male

Posted 07 November 2009 - 10:06 AM

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?
0

#3 User is online   multimixer Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,664
  • Joined: 05-October 08
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 07 November 2009 - 10:16 AM

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

This post has been edited by multimixer: 07 November 2009 - 10:17 AM

0

#4 User is online   multimixer Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,664
  • Joined: 05-October 08
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 07 November 2009 - 02:57 PM

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

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic