Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change header/meta info globally?


Guest

Recommended Posts

Posted

My site is all ready to go, but all of the page titles say "oscommerce" and there is no keywords, page description, meta data, etc.

 

Is there a way to change this easily? or must I go into every single page in the catalog and do it manually?

 

Some kind of batch method perhaps? Thanks very much.

 

Aaron

Posted

install the header tags controller contribution a link to the contributions section is in my signature

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Thanks...I looked at that but is seems to only effect one page at a time. Am I not understanding it correctly? Thanks a lot.

 

Aaron

Posted

OK, I figured it out. To simply change your page title and meta tags for the entire site, I did this:

 

1) In catalog/includes/languages/english.php I changed the TITLE from "oscommerce" to "my title"

 

2) I downloaded all of the catalog/ html and php pages and backed them up on my computer

 

3) I opened bbedit lite (mac osx) and did a "find and replace" for the entire folder of pages with the following criteria:

 

Find:

<head>

 

Replace with:

<head>

<?php include "includes/local/meta.html"; ?>

 

4) I created a file called "meta.html" with my description, keywords, etc. and placed it in catalog/includes/local/

 

Now when any page is loaded, it calls up the page title from english.php and meta info from meta.html

 

Now anytime I want to change the meta tags, I simply alter meta.html and it will effect the entire site.

 

The contribution mentioned in this thread sounds great if you want each product in your catalog to have its own title and meta info. It requires altering the database and moving alot of code though. Something I'll do later once my site is up and running. For now, the basics will do.

 

Good Luck!

 

Aaron

Posted

Can you recoment such a text editor to use under Win XP?

Posted

sfsurfcat - you rule!!! that's the easiest adjustment I've made! Thanks.

Archived

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

×
×
  • Create New...