You are here:  » How do I change index.php to another title?

Support Forum



How do I change index.php to another title?

Submitted by shabbysheep on Tue, 2008-10-21 13:59 in

Hi David,

Just a quick question - I would like to change my index.php to another title e.g. prices.php. In an earlier post you gave a guide on changing Line 4 in menu.php. My menu.php is blank however:

<?php
// This page is blank
?>

Do I make the change elsewhere?

Regards,

shabbysheep

Submitted by support on Tue, 2008-10-21 14:03

Hi,

The default html/menu.php contains:

<div class='menu'>
  <p>
    <small>
      <a href='<?php print $config_baseHREF?>'><?php print translate("Home"); ?></a>
    </small>
  </p>
</div>

...so if you want to rename index.php to prices.php, make your menu.php (which simply displays the "Home" link on all pages except the front page) then you could use:

<div class='menu'>
  <p>
    <small>
      <a href='<?php print $config_baseHREF?>prices.php'><?php print translate("Home"); ?></a>
    </small>
  </p>
</div>

Alternatively, if your header / footer already contains links to (what will become) prices.php then you can problem just rename index.php and that's all you'd need to do!

Cheers,
David.