Forums / Templates, Stylesheets, Page Layout / Changing URL on Home Page

Changing URL on Home Page

Locked

Views: 900

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Nov 2009, 7:51 AM
#1
linda408 avatar

linda408

New Zenner

Join Date:
Sep 2009
Posts:
41
Plugin Contributions:
0

Changing URL on Home Page

Hi I can't figure out where in my templates files can I change URL for the tab named Home Page...

I found this thread: http://www.zen-cart.com/forum/showthread.php?t=60844
it kind of talks about it, but it is not clear what file was edited in the end...

Did anyone come across this problem before??
Thanks.

24 Nov 2009, 3:53 PM
#2
goosedesign avatar

goosedesign

New Zenner

Join Date:
Feb 2008
Location:
UK
Posts:
39
Plugin Contributions:
0

Re: Changing URL on Home Page

The file you need is templates/YOUR_TEMPLATE/common/tpl_header.php. First you need to add a link to your website home page as a list item:

<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><a href="mysiteroot">Home</a></li>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

Next, decide if you want to keep the link to he shop home page. If you don't, just delete this line:

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

If you do want to keep it, you will need to go to includes/languages/YOUR_TEMPLATE/english/header.php and change this line to suit:

  define('HEADER_TITLE_CATALOG', 'Home');