Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing Footer home link

Changing Footer home link

Views: 1,959

Results 1 to 8 of 8
20 Apr 2011, 2:16 AM
#1
vbalam avatar

vbalam

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Changing Footer home link

Hello people im a newbie in here im using Zen Cart v1.3.9h and i wanted to change the following links:

1.Home on the top part of page
2.Logo on the header
3.Home on the footer where it says mydomain.com

from "www.example.com/store" to "www.example.com"

So i read from post #20 in here:
http://www.zen-cart.com/forum/showthread.php?t=75267&page=2

And number 1 and 2 are solved but i still cant get the footer to work

i made a copy from includes/templates/template_default/common/tpl_footer.php

edited the file as mentioned on the post and then uploaded it to
/includes/templates/custom/common/tpl_footer.php

This worked for the first 2 things and not for the footer any ideas people?

Thanks in advance for your time

20 Apr 2011, 10:52 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Footer home link

edited the file as mentioned on the post and then uploaded it to
/includes/templates/custom/common/tpl_footer.php
Paste your edited code for that file here

20 Apr 2011, 2:56 PM
#3
vbalam avatar

vbalam

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Re: Changing Footer home link

<?php /** * Common Template - tpl_footer.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_footer = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2010 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_footer.php 15511 2010-02-18 07:19:44Z drbyte $ */ require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); ?> <?php if (!isset($flag_disable_footer) || !$flag_disable_footer) { ?> <!--bof-navigation display --> <div id="navSuppWrapper"> <div id="navSupp"> <ul> <li><?php echo '<a href="' . HTTP_SERVER . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li> <?php } ?> </ul> </div> </div> <!--eof-navigation display --> <!--bof-ip address display --> <?php if (SHOW_FOOTER_IP == '1') { ?> <div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div> <?php } ?> <!--eof-ip address display --> <!--bof-banner #5 display --> <?php if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <!--eof-banner #5 display --> <!--bof- site copyright display --> <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div> <!--eof- site copyright display --> <?php } // flag_disable_footer ?>
20 Apr 2011, 6:47 PM
#4
vbalam avatar

vbalam

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Re: Changing Footer home link

anyone please?? :blush:

21 Apr 2011, 12:27 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Footer home link

What code did you change??

2 May 2011, 5:48 PM
#6
vbalam avatar

vbalam

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Re: Changing Footer home link

Sorry about the delay i had some problems

Original line in the code was:

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

Removed DIR_WS_CATALOG from the code which worked with the other links.

5 May 2011, 6:14 PM
#7
vbalam avatar

vbalam

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Re: Changing Footer home link

Anyone that can help me pleasee :frusty:

19 Jun 2011, 10:41 PM
#8
ab4c avatar

ab4c

New Zenner

Join Date:
May 2011
Location:
Minnesota
Posts:
7
Plugin Contributions:
0

Re: Changing Footer home link

I'm also trying to figure out how to edit the "Home" in the footer.

I want to change the footer link that says "Home" to say "Store Home".

I wanted this changed in the top nav bar and I've already edited the templates/CUSTOM/common/tpl_header.php to change the "Home" to "Store Home" and have added a "Blog Home". That worked fine. I just can't seem to figure out the footer.

Any help would be greatly appreciated.