You are here:  » Seperate Index tage

Support Forum



Seperate Index tage

Submitted by bloach on Mon, 2008-02-18 03:25 in

Hi,

I would like to have a separate Index tag and then not have this index tag added to any of other page titles. Currently I can't have a long page title because it will add the same long title to product page titles and make it inefficient for CEO purposes.

Can you help.

Thanks

Submitted by support on Mon, 2008-02-18 08:58

Hi,

To do this, you can just set the TITLE tag the same way all the other scripts generate their own optimised TITLE tags, and then if you want, leave $config_title = "" (i.e. empty) in config.php.

To do this, in index.php, look for this code near the top:

  require("html/header.php");

...and change this to:

  $header["title"] = "Your index page title tag here!";
  require("html/header.php");

Hope this helps!
Cheers,
David.

Submitted by bloach on Wed, 2008-02-20 01:04

Thanks David.

Submitted by support on Wed, 2008-02-20 11:25

Hi,

I'm not sure where the "-" is coming from as the distribution doesn't have "-" as part of the title anywhere. Can you check in your html/header.php that you have the following line exactly as shown below:

<title><?php print (isset($header["title"])?$header["title"]:$config_title); ?></title>

Regarding the review page title, that's no problem. In reviews.php the title is set by the following code on line 67:

$header["title"] = $q;

Simply change this to:

$header["title"] = "Product review of ".$q;

Cheers,
David.

Submitted by bloach on Wed, 2008-02-20 12:47

That works like a charm .. Thanks a lot David.

Submitted by support on Wed, 2008-02-20 13:15

Hi,

These 3 pages are generated by the following files:


merchants.php
brands.php
categories.php

In each of these files, you will find the following code:

require("html/header.php");

To set your preferred title, edit this to include the $header["title"] = "..." infront of the above line, for example:

$header["title"] = "Merchant Index";
require("html/header.php");

Cheers!
David.