Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Titles showing up 20 times over, How do I change my


Ausgirl

Recommended Posts

Hello,

 

I have the same title repeating itself over & over showing up in google looking like this:

 

See Here!

 

What do I need to change to stop this happening? Also how do I stop every description starting with:

 

Home » Catalog » Skins » Xbox 360 » UXC52, My Account | Cart Contents | Checkout. CATAGORIES

 

This is obviously the 1st thing the spider is seeing. How do I make it so its different for every page.

 

Or is it best to delete the Home » Catalog » ect... from the top of the page.

 

I use header tag controller but I dont think that has anything to do with it. Im sure Im typing something in somewhere I shouldnt be :rolleyes:

 

Much Appreciated

 

Thanks

Link to comment
Share on other sites

By installing one of the header tags contribs, e.g., the one in my signature.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

my guess is that google probably indexed ur site before u had the meta tags contribs installed so its displaying the 1st bit of text that it comes across, ie the breadcrumbs. now that u have the meta tags the next time google indexes ur site the proper description should appear which wont happen untill u install the meta tags contrib correctly:

 

u have this...

<meta name="Description" content="Shopping In Your Pjs: Australias online Variety Store!" />
<meta name="Keywords" content="Australias online Variety Store! - Variety, Shopping,pjs, Pyjamas,Australia,Toys,shopping,gifts,news, DVD, Movies,oscommerce,news,weather,free" />

but also this

<!-- EOF: Generated Meta Tags -->
<meta name="description" content="Elegant Evening Purse">
<meta name="keywords" content="Elegant Evening Purse">

description and keywords meta tags r being repeated, u should fix this asap, also the page title is very important and should be unique and reflect each page, u have the same page title for every page

Link to comment
Share on other sites

It only looks like that on the source page it doesnt look like that in my index because its the header tag controller code and I cant delete that.

 

Yeh, thats on my products page. You know why? Because when you add a product you fill out the header tags for each one in the header product title/description/keywords. You do this for each product.

Thats why this is popping up.

 

<!-- EOF: Generated Meta Tags -->

<meta name="description" content="Elegant Evening Purse">

<meta name="keywords" content="Elegant Evening Purse">

 

As for the other one, thats for my home/index page. Popping up on all pages.

 

The descriptions are different but the title is the same for each product page. Which it shouldnt be. For example:

 

Mysite:

top>catalog>fishing>my account>cart>checkout

Then description of the product.

 

But they all start like that: Mysite:

top>catalogue>fishing>my account>cart>checkout

 

When they should be starting like this:

 

Product (as title)

Description.

 

Hope I havent confused anyone.

Link to comment
Share on other sites

It looks like the contribution may not have been installed entirely or correctly.

In the admin section when adding products you should be able to add the title tag just like the keywords.

If it is not there you may need to rerun the sql.

Also recheck the instructions for the index.php and all other files you had to edit for the meta tags and be sure the parts you needed to replace were. (ie. If instructions say replace the title tags with some code be sure they have been replaced and the code was not just added)

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

yes, I did this. I am able to add the title page and tags when adding products, thats why this shows up.

<meta name="description" content="Elegant Evening Purse">

<meta name="keywords" content="Elegant Evening Purse">

I have replaced the code, not just added it. I can post this part of my index.php if that helps. I have gone over the instructions and cant see that I have missed anything. (doesnt mean I didnt miss anything)

Link to comment
Share on other sites

Here is the part of my index in question:

Hope it looks right.

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// the following cPath references come from application_top.php

$category_depth = 'top';

if (isset($cPath) && tep_not_null($cPath)) {

$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$cateqories_products = tep_db_fetch_array($categories_products_query);

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");

$category_parent = tep_db_fetch_array($category_parent_query);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<?php

// BOF: Header Tag Controller v2.6.0

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

?>

<base href="<?php echo (($request_type == 'SSL') ?

HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<?php include ('includes/ssl_provider.js.php'); ?>

<link rel="shortcut icon" href="favicon.ico" >

Link to comment
Share on other sites

If when you enter products there are 3 meta fields you can enter:

Description

Keywords

Title

then your catelog/includes/header_tags.php is not calling for the title tag.

You show this showing up

<meta name="description" content="Elegant Evening Purse">

<meta name="keywords" content="Elegant Evening Purse">

 

but there should also be one generated for the title.

Also is the link you posted to your site working for you? I cannot get it to work for me so I can look at the page.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

You might try replacing your catelog/includes/header_tags.php to see if that helps. Dont know for sure but it could be possible the version you downloaded was missing some of the code. If nothing else works you might try downloading a different (earlier) version and see if that file is different or the code you place in the header is different. (just a shot in the dark!)

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Thanks for that Bill, That did the trick. I just uploaded the file from the new/clean install. Now its just my info pages repeating. My terms/conditions ect... as well as the pages Ive added. I think maybe that might have something to do with having info pages unlimited installed, maybe? Maybe not, just guessing.

 

Shot in the dark hit its mark :)

Link to comment
Share on other sites

Now its just my info pages repeating. My terms/conditions ect... as well as the pages Ive added.

Since those pages do not have product or categories the code falls back to the default keywords and descriptions. It's supposed to. So it's working right.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...