Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange meta issue


sitefire

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...