Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

Ah! I may be restoring my backup to pre-Dynamic Sitemap and trying that!!! Great... something to do in the AM.

 

Thanks!


I find the fun in everything.

Share this post


Link to post
Share on other sites

Hi,

 

is it possible to have in the categories page , only header tags title , without the default site title ?

Yes, uncheck the default title checkbox in Page Control for index.php.

Share this post


Link to post
Share on other sites

I just installed header tags and working through it. I have a quick question/problem.

I'm getting this

/*** Begin Header Tags SEO ***/ if (isset($HTTP_GET_VARS['manufacturers_id'])) $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO .

right below my header. It came up on the Index page (I found my mistake and fixed it)but I'm still getting it in all my categories list. It does not show up when a category has sub categories just the ones that has just products in it. I need help finding the file I should look at to fix this.

Thank you for the help :)

 

Paul

Share this post


Link to post
Share on other sites

I went to google and entered site:domain-name and came upon several results. There are a few of them that display the following:

GreatDiscounts4u
Shopping Cart contains. Products: 0. Total: $0.00. Home · Shipping · New Products · Contact Us · Specials · FAQ · Policy · Home » About us. Categories ...
https://www.greatdiscounts4u.com/about_us.php - Cached

Looking at this it is reading the header. So am asking, is it because of the code added to header.php for contribution Header Tags SEO? I did read some of the previous post, like post # 4048, and so I am thinking this might be normal.

 

Just checking.

 

Thanks.

 

Bennett

Share this post


Link to post
Share on other sites

I just installed header tags and working through it. I have a quick question/problem.

I'm getting this

right below my header. It came up on the Index page (I found my mistake and fixed it)but I'm still getting it in all my categories list. It does not show up when a category has sub categories just the ones that has just products in it. I need help finding the file I should look at to fix this.

You've made a mistake in the changes to the file. Compare yours with the included one to find it.

Share this post


Link to post
Share on other sites

I went to google and entered site:domain-name and came upon several results. There are a few of them that display the following:

GreatDiscounts4u
Shopping Cart contains. Products: 0. Total: $0.00. Home · Shipping · New Products · Contact Us · Specials · FAQ · Policy · Home » About us. Categories ...
https://www.greatdiscounts4u.com/about_us.php - Cached

Looking at this it is reading the header. So am asking, is it because of the code added to header.php for contribution Header Tags SEO? I did read some of the previous post, like post # 4048, and so I am thinking this might be normal.

No, it isn't because of Header Tags.

Share this post


Link to post
Share on other sites

You've made a mistake in the changes to the file. Compare yours with the included one to find it.

Thank you

But I'm unsure what file I made the mistake in, I looked for the mistake in the ones I thought would have it. But I can't seam to find the file that it would be in. Any one know what the file name and if it is in the catalog/included folder? Thank you

Share this post


Link to post
Share on other sites

Thank you

But I'm unsure what file I made the mistake in, I looked for the mistake in the ones I thought would have it. But I can't seam to find the file that it would be in. Any one know what the file name and if it is in the catalog/included folder? Thank you

Look in the archive in the catalog folder. There are only a few.

Share this post


Link to post
Share on other sites

Look in the archive in the catalog folder. There are only a few.

Thank you

I did find it, it was in the index.php I found the first one and fixed it but did not know there was a 2nd one in there. :blush:

Share this post


Link to post
Share on other sites

Thank you

I did find it, it was in the index.php I found the first one and fixed it but did not know there was a 2nd one in there. :blush:

You're welcome. Good job!

Share this post


Link to post
Share on other sites

Hi Jack & any other guru's here,

 

Apologies if this is something simple, however I have searched and just can't seem to get this right.

 

A store i'm working on has the header tags contribution installed, and it generally works great (thanks for all the effort you put into this stuff). One thing I can't work out how to do properly however. Please note i'm a newbie at osCommerce.

 

The title of each category page is showing up as "CATEGORY NAME" (ie all in capitals) and that's it.

 

What I want it to show up as is "Category Name | Some standard common text | Site Name"

 

For example, instead of "RED WIDGETS" I want the categories to say "Red Widgets | Widgets & Gadgets | Widgets Shop" where "| Widgets & Gadgets | Widgets Shop" is common to all category pages and just the first bit changes.

 

So there are two parts to this basically:

1) How do I get the category titles to have the extra text in there?

2) Is it possible to rewrite the category names to lower case IN THE TITLES ONLY? I'm not interested in changing them on the site overall, just how the text is used in the titles.

 

Any help very much appreciated.

 

Matt

Share this post


Link to post
Share on other sites

The title of each category page is showing up as "CATEGORY NAME" (ie all in capitals) and that's it.

 

What I want it to show up as is "Category Name | Some standard common text | Site Name"

 

For example, instead of "RED WIDGETS" I want the categories to say "Red Widgets | Widgets & Gadgets | Widgets Shop" where "| Widgets & Gadgets | Widgets Shop" is common to all category pages and just the first bit changes.

 

So there are two parts to this basically:

1) How do I get the category titles to have the extra text in there?

2) Is it possible to rewrite the category names to lower case IN THE TITLES ONLY? I'm not interested in changing them on the site overall, just how the text is used in the titles.

There isn't anything in the Header Tags code to cause the title to be all capitals. That is either due to how the titles are entered in admin or something in your code is doing it (that is common with some templates). Check the title in admin by going to the category edit page. If it is capitalized there, just change it. Otherwise, it is the code in your shop and you will have to figure out how to change it.

Share this post


Link to post
Share on other sites

There isn't anything in the Header Tags code to cause the title to be all capitals. That is either due to how the titles are entered in admin or something in your code is doing it (that is common with some templates). Check the title in admin by going to the category edit page. If it is capitalized there, just change it. Otherwise, it is the code in your shop and you will have to figure out how to change it.

 

Hi Jack,

 

Thanks for your advice so far.

 

What I was hoping existed was a way to "force title case for page title" despite how they are entered, but perhaps not.

 

Leaving that aside, do you have any advice on the other bit - how to get more than the category name showing as the title (as per my example)?

 

Thanks

Matt

Share this post


Link to post
Share on other sites

What I was hoping existed was a way to "force title case for page title" despite how they are entered, but perhaps not.

 

Leaving that aside, do you have any advice on the other bit - how to get more than the category name showing as the title (as per my example)?

Oh, I misunderstood. You can edit the header tags array in includes/header_tags.php and use the strtoupper php function to change the case.

 

You can change the title in the categories edit page. Or, if the test will be the same for all pages, set the default title to that extra text and check the default category for index.php in page control. Or, if the extra text is to appear on the home page too, add it as the root text for index.php in page control and check the root box.

Share this post


Link to post
Share on other sites

Hi jack

 

i was wondering if implementing the top parent id ( top parent category ) can be easily added

 

this is for the product_info.php page neway

Edited by xp02ed

Share this post


Link to post
Share on other sites

Hi jack

 

i was wondering if implementing the top parent id ( top parent category ) can be easily added

 

this is for the product_info.php page neway

I don't understand your question (implementing the top parent id and neway) but if you are wanting to add the main parent category to the title and tags, instead of the immediate category, you would need to alter the code in includes/header_tags.php and includes/functions/header_tags.php to load in the category you want. It is not part of the code but can be done.

Share this post


Link to post
Share on other sites

Be sure the includes/header_tags.php file has the correct permissions on it. If it does, open that file and look at the entry for information pages. It should have many more lines than one of the other pages. If not, then there is a problem writing to that file.

 

Jack, sorry for coming up with this problem again, but I double-checked the permissions on the file /catalog/includes/header_tags.php.

The file is writeable for oscommerce.

 

I also deleted all case-blocks in the middle of /catalog/includes/header_tags.php and let the file being re-written by selecting the "add all missing pages"-Function in the admin.

After that the /catalog/includes/header_tags.php was re-written, but the code for the information.php-case is not longer than the one of the other pages.

In the database, a pseudo page ("information.php?info_id=9") is set up correctly, but the results wont show up in the frontend.

 

Do you have an advice for me please, what to check next in order to get my pseudo pages working correctly ?

 

Any help very much appreciated.

Andreas

 

PS: osC is on version RC2.2a and PHP 5.2.14.

Share this post


Link to post
Share on other sites

Jack, sorry for coming up with this problem again, but I double-checked the permissions on the file /catalog/includes/header_tags.php.

The file is writeable for oscommerce.

 

I also deleted all case-blocks in the middle of /catalog/includes/header_tags.php and let the file being re-written by selecting the "add all missing pages"-Function in the admin.

After that the /catalog/includes/header_tags.php was re-written, but the code for the information.php-case is not longer than the one of the other pages.

In the database, a pseudo page ("information.php?info_id=9") is set up correctly, but the results wont show up in the frontend.

 

Do you have an advice for me please, what to check next in order to get my pseudo pages working correctly ?

 

Any help very much appreciated.

Andreas

 

PS: osC is on version RC2.2a and PHP 5.2.14.

If you delete the entries in that file, the pseudo code won't get recreated. You need to delete the pseudo page entry in page control and add it again. If the page is getting added in page control, then the problem has to be with the permissions on the includes/header_tags.php file. Try this. Create a copy of your index.php file and name it whatever you want. Upload it to the root of your shop and then go to page control so that the new page is added to the list. Then look at includes/header_tags.php and see if the new page is listed. If not, the file is not being updated, which is a permissions problem.

Share this post


Link to post
Share on other sites

If you delete the entries in that file, the pseudo code won't get recreated. You need to delete the pseudo page entry in page control and add it again. If the page is getting added in page control, then the problem has to be with the permissions on the includes/header_tags.php file. Try this.

 

That was the solution, thanks !

First I deleted all pseudo pages and the root page of information.php in the admin page control.

Next, I added the root page again, by adding missing pages.

Next, I added one pseudo page.

To this point of time, the database had no entries for these two pages.

Next I added the data in the page control and it works !

 

Thanks for your help !

Share this post


Link to post
Share on other sites

Jack, one additional question:

 

I have the problem, that the info, that I entered for the root page index.php

also appears, when a category is being watched.

Then, both information, the one entered for the category AND the info for the index.php appears.

 

Is it possible to enter separate information for the index.php (the root page of the shop) only,

without affecting all category pages as well ?

 

Thanks in advance

Share this post


Link to post
Share on other sites

I have the problem, that the info, that I entered for the root page index.php

also appears, when a category is being watched.

Then, both information, the one entered for the category AND the info for the index.php appears.

 

Is it possible to enter separate information for the index.php (the root page of the shop) only,

without affecting all category pages as well ?

Uncheck the root box in page control.

Share this post


Link to post
Share on other sites

******** NOTE: STS USERS ONLY - Skip to step 1A. *********

******** NOTE: BTS USERS ONLY - Skip to step 1B. *********

Your shop is an STS shop if there is an includes/sts_templates/ directory.

Your shop is a BTS shop if there is a templates directory in the root directory.

 

 

hi i have got to this part of the install and mine does not have either of the above, does this mean it has been deleated? or have i got a later version since your post?

 

also same question regarding version

mine is as below.

 

// define the project version

define('PROJECT_VERSION', 'osCommerce Online Merchant v2.2 RC2a');

 

many thanks

andy

Share this post


Link to post
Share on other sites

******** NOTE: STS USERS ONLY - Skip to step 1A. *********

******** NOTE: BTS USERS ONLY - Skip to step 1B. *********

Your shop is an STS shop if there is an includes/sts_templates/ directory.

Your shop is a BTS shop if there is a templates directory in the root directory.

 

 

hi i have got to this part of the install and mine does not have either of the above, does this mean it has been deleated? or have i got a later version since your post?

It says if you use STS or BTS to skip. You say you don't have either. So you shouldn't skip to the indicated step.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×