Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customizable Page Titles


jhilgeman

Recommended Posts

Someone posted something similar to this, but it's a little restrictive. Their method forces the text from the navigation bar into the title. I've done that for my categories and products, but for other pages that aren't related to those areas, I use a different method.

 

In the header file, where <title>...</title> is displayed, I use a variable. My store is English-only at this point, so I don't need constants defined in language files, although you could easily adapt my method to use a constant.

 

Instead of using the TITLE constant, I use $SiteTitle. In each page that needs a customized title, I add a line before the header file is called:

 

$SiteTitle = "Customized Page Title";

include("headers and all that stuff");

...

etc...

...

 

Just thought I'd add my two cents.

 

- Jonathan

Download osCommerce Order Editor v1.2 Here:

http://www.oscommerce.com/community/contributions,1435

Link to comment
Share on other sites

Here is the one I used:

 

<title><?php echo HEADING_TITLE; ?> :: <?php echo TITLE; ?></title>

 

Gets it pretty good for pages like privacy, shipping, whats new, specials etc, etc

"Use no way as way, have no limitation as limitation." - Bruce Lee

Link to comment
Share on other sites

  • 2 months later...

Where can I find this?

 

(I searched forums for Linda McGrath & header tag and it yielded no results!)

 

thanks!

ms

-----------

 

you know what they say about paradigms -

shift happens

Link to comment
Share on other sites

Where can I find this?

 

(I searched forums for Linda McGrath & header tag and it yielded no results!)

 

thanks!

 

O Com On!!

 

There are 1000's of posts reagrding this - You just didnt search did ya!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...