Forums / General Questions / Double home page link in footer

Double home page link in footer

Views: 796

Results 1 to 8 of 8
9 Feb 2011, 9:05 AM
#1
newbe25 avatar

newbe25

New Zenner

Join Date:
Feb 2011
Posts:
12
Plugin Contributions:
0

Double home page link in footer

Hi Everyone,

I have a double home page link in the footer of my Zen Cart website. Any ideas how to get rid of it?

Thanks

http://www.buddypetstore.com/

10 Feb 2011, 10:42 PM
#2
newbe25 avatar

newbe25

New Zenner

Join Date:
Feb 2011
Posts:
12
Plugin Contributions:
0

Re: Double home page link in footer

I was told that you have to modify the categories sidebox template, does anybody know the file name or where it is located? Thanks

10 Feb 2011, 10:46 PM
#3
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Double home page link in footer

In your admin>tools>dev tool kit

that will help you locate any file:smile:

10 Feb 2011, 11:20 PM
#4
newbe25 avatar

newbe25

New Zenner

Join Date:
Feb 2011
Posts:
12
Plugin Contributions:
0

Re: Double home page link in footer

Thanks for the link :-) However used and still can't figure out how to get rid of the double home page links in the footer. Can't see anything that would do it under Categories.php under sidebox or tpl_footer.php under common?

10 Feb 2011, 11:30 PM
#5
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Double home page link in footer

Its called "menu" and its in your common> footer:smile:

prob:unsure:

11 Feb 2011, 4:18 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Double home page link in footer

The first Home link will be in /includes/templates/your_template/templates/tpl_footer.php.```php
echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'. HEADER_TITLE_CATALOG . '</a>';

11 Feb 2011, 4:59 AM
#7
newbe25 avatar

newbe25

New Zenner

Join Date:
Feb 2011
Posts:
12
Plugin Contributions:
0

Re: Double home page link in footer

Hi Gjh42.

Thanks for the reply and information, I located the file under

/includes/templates/your_template/common/tpl_footer.php.

And have taken some code and shown below:

<!-- ========== MENU ========== -->
							<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
							
								<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>"><?php echo HEADER_TITLE_CATALOG; ?></a><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
						
							<?php } ?>
						<!-- ========================== -->

I than deleted the following

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

Seems to have got ridden of the first homepage word link in the footer, but now stuck with the "::" in front of the remaining home page link? did I delete the right line? or do i need to delete more somewhere?

Thanks for your help

11 Feb 2011, 5:31 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Double home page link in footer

tpl_ez_pages_bar_footer.php puts the :: before each ez-page link. Eliminating the first one will require writing a bit of new PHP.

The easiest way to get rid of one of the home links would be to leave tpl_footer.php as is, and delete the "Home Page" ez-page in Tools > EZ-Pages.