Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Meta Tags question


Guest

Recommended Posts

Posted

I have set up my site so it can begin its assault on search engine traffic although there is still much to do.

My primary question is meta tags for seo. I should say I am not php savvy so please bear with my question.

I see that the index.php page has a <title><?php echo TITLE; ?></title> but no description or keywords. Since I am accustomed to html, can I add standard html meta tags to the header section of each page? or am I going to run into a problem.

Secondarily, I am about to run a robots.txt file and sitemap for google and yahoo through GSite Crawler. Are there any pages or types of pages I do not want included?

 

Thanks for your help.

DylanO

Posted
I have set up my site so it can begin its assault on search engine traffic although there is still much to do.

My primary question is meta tags for seo. I should say I am not php savvy so please bear with my question.

I see that the index.php page has a <title><?php echo TITLE; ?></title> but no description or keywords. Since I am accustomed to html, can I add standard html meta tags to the header section of each page? or am I going to run into a problem.

Secondarily, I am about to run a robots.txt file and sitemap for google and yahoo through GSite Crawler. Are there any pages or types of pages I do not want included?

 

Thanks for your help.

DylanO

 

if you are using header tags controller you need to get rid of that code before you go ahead and start creating your own <title> & <meta> tags. (or at least that is what i do) :rolleyes: hopefully someone else will chime in

 

reference .. the code you need to get rid of

 

<?php
// BOF: Header Tag Controller v2.6.3
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
 <title><?php echo TITLE; ?></title>
<?php
}
// EOF: Header Tag Controller v2.6.3
?>

 

once deleted within the <head></head> you can feel free to code it like any html file by adding

<title></title>

<meta name="Description" content="" />

<meta name="Keywords" content="" />

<meta name="robots" content="index, follow" />

Posted
I have set up my site so it can begin its assault on search engine traffic although there is still much to do.

My primary question is meta tags for seo. I should say I am not php savvy so please bear with my question.

I see that the index.php page has a <title><?php echo TITLE; ?></title> but no description or keywords. Since I am accustomed to html, can I add standard html meta tags to the header section of each page? or am I going to run into a problem.

Secondarily, I am about to run a robots.txt file and sitemap for google and yahoo through GSite Crawler. Are there any pages or types of pages I do not want included?

 

Thanks for your help.

DylanO

Adding your own tags won' help you much since the categories and product pages use one of two files for all of them. If you just add code like you would in a html site, the title and meta tags would be the same for every page, which is not any good. You need to install one of the meta tags contributions to handle those properly.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Hi, I was wondering is there a way to use header tag controller to populate new products with a set text and the product header inserted into it...

 

So an example being:

 

Title: *product name*, Marvel Comic

 

Description: Marvel Silver Age Comic, *product name* - Jack Kirby...

 

Keywords: *product name*, comics, Marvel

 

 

So something along those lines, some fixed text with the differing product title being inserted in a fixed position...

 

Thanks for any help

 

Regards

 

Tubbing

Posted
You would have to manually enter the text in the product edit page or edit the includes/header_tags.php file if the added text would be the same for each product.

 

Jack

 

Yes the added text bar the product name would be the same everytime... Ive had a look at the file you said and it scared me... Got the jist of how it works, but i would not like to try editting it and messing up all the existing meta tags... Is it possible you point out which lines I would need to alter.

 

Thanks for the help again Jack

 

Tubbing

  • 4 weeks later...
Posted
Hi, I was wondering is there a way to use header tag controller to populate new products with a set text and the product header inserted into it...

 

So an example being:

 

Title: *product name*, Marvel Comic

 

Description: Marvel Silver Age Comic, *product name* - Jack Kirby...

 

Keywords: *product name*, comics, Marvel

So something along those lines, some fixed text with the differing product title being inserted in a fixed position...

 

Thanks for any help

 

Regards

 

Tubbing

 

 

Meta tags "on the fly" contrib produces this for my site:

 

<TITLE>sexy underwear and Designer lingerie from Secret-Desire Dreamgirl 2008 Lingerie-Stretch Lace Sleepwear</TITLE>

<META NAME="Keywords" content="Lingerie, sexy lingerie, underwear, corsets, sexy wear, sexy underwear, corsets, plus size, ladies lingerie, underwear, silk, costumes, bra, Dreamgirl 2008, Lingerie, Stretch Lace Sleepwear">

<META NAME="Description" content="Stretch Lace Sleepwear Shirt With Low Rise Lace Panty.

 

the parts in red change depending on what page you are viewing, is this what you mean ?

Archived

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

×
×
  • Create New...