Forums / Templates, Stylesheets, Page Layout / Can't Remove 'Home' From footer?!?!

Can't Remove 'Home' From footer?!?!

Locked

Started by niagarasoap on 18 Mar 2008, 3:10 AM · Views: 11,827

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
18 Mar 2008, 3:10 AM
#1
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Can't Remove 'Home' From footer?!?!

Hi all.

For some reason at the footer, next to where the EZ page links are, there's a HOME button.

And I can't seem to get rid of it. It's a pain, since now I have 3 home buttons, one in header next to Log in, one in the top EZnavbar and also in the footer EZnavbar.

I can remove any of them accept the footer one. Anyone know how to get rid of it?

Your help would be appreciated.

18 Mar 2008, 3:15 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,188
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

Please post a link to your site please

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

18 Mar 2008, 4:03 AM
#3
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

My site is at http://www.theniagarasoapcompany.com/zencart/

Please note it's still very much a work in progress. All text there is just for filler.

18 Mar 2008, 4:41 AM
#4
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

My home on the top navbar is done with EZpages, but the footer one does not seem to be connected with EZ?!? So it stays even when I disable EZ pages in the footer.

27 Mar 2008, 5:09 AM
#5
division26 avatar

division26

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

I would also like to know how to do this either completely remove the HOME link from the footer or at the very least change the URL to direct to my real index page outside the cart. I have tried for days to figure this one out and I'm at a loss.
http://www.division26clothing.com/cart/index.php?main_page=page&id=15

27 Mar 2008, 5:24 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,188
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

division26:

I would also like to know how to do this either completely remove the HOME link from the footer or at the very least change the URL to direct to my real index page outside the cart. I have tried for days to figure this one out and I'm at a loss.
http://www.division26clothing.com/cart/index.php?main_page=page&id=15

Find this in the tpl_footer:

  1. <a href="http://www.division26clothing.com/cart/">Home</a>
    Change to:

  2. <a href="http://www.division26clothing.com/cart/ target="_blank"">Home</a>Change the red font to whatever site you want to link to & the Home to the new sites Name to be viewed in the footer.
    The beauty of the target is a seperate page is loaded.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Oct 2008, 7:06 PM
#7
parviz avatar

parviz

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

I had the same problem. the way I fixed was by deleting this line in tpl_footer.php in my template directory:
"<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>"

& replace with:

<li><a href='http://www.xyz.com/abc'>New Link</a></li>

If you don't want a replacement link then you've gotta take your first ezpage link off & replace the home link with that eg:

<li><a href='http://www.xyz.com/index.php?main_page=page&id=1'>EZ Page 1</a></li>

Hope it helps.

20 Nov 2008, 1:08 AM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Can't Remove 'Home' From footer?!?!

parviz:

I had the same problem. the way I fixed was by deleting this line in tpl_footer.php in my template directory:
"<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>"

& replace with:

<li><a href='http://www.xyz.com/abc'>New Link</a></li>

If you don't want a replacement link then you've gotta take your first ezpage link off & replace the home link with that eg:

<li><a href='http://www.xyz.com/index.php?main_page=page&id=1'>EZ Page 1</a></li>

Hope it helps.This post was helpful, but a little confusing.. (hope I don't offend anyone..:blush:) I had to read it a few times before the lightbulb went off..

I'd like to take a stab at clarifying this a bit for anyone who had a little trouble grasping this too..

If you want to remove the "Home" link from the EZ Pages footer navbar AND you will NOT be using EZ Pages footer links:
Copy the **
/includes/templates/default_template/common/tpl_footer.php** file to
/includes/templates/your_template/common/tpl_footer.php

Find this in the/includes/templates/your_template/common/tpl_footer.php file:

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG_FOOTER; ?></a></li>
```and either comment this out or delete this line altogether.

If you want to remove the "Home" link from the EZ Pages footer navbar AND you WILL be using EZ Pagers footer links:

Find this in the  file:
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG_FOOTER; ?></a></li> ```In theory you can change this to whatever link you want. If you will be using EZ Pages, this could be your first EZ Page link. For example: I usually use the EZ Page footer links for links to the site policies.. So in that example I would replace the above code with the link to the policy page that will appear in place of the "Home" link, and use EZ pages to create the remaining footer links..

Hope that helps make this a little clearer for others.. this was one of those Zen things that has ALWAYS driven me banannas.. Glad I at least now know a solution..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

9 Jan 2009, 2:57 PM
#9
acmeinteractive avatar

acmeinteractive

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

What I did to fix this problem rather than hard coding in the first page link:

I removed this line from tpl_footer.php:

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

Now the home link is gone but if you have a separator specified then it will show up before your first link. To fix that go into tpl_ezpages_bar_footer.php and change this line

<?php echo ($i <= $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>

to

<?php echo ($i <= $n && $i != 1 ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>

In another words the separator will only be displayed if the link is not the first or the last.

10 Jan 2009, 2:44 AM
#10
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Can't Remove 'Home' From footer?!?!

acmeinteractive:

What I did to fix this problem rather than hard coding in the first page link:

I removed this line from tpl_footer.php:

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> ```Now the home link is gone but if you have a separator specified then it will show up before your first link. To fix that go into tpl_ezpages_bar_footer.php and change this line > > ``` <?php echo ($i <= $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?> ```to > > ``` <?php echo ($i <= $n && $i != 1 ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?> ```In another words the separator will only be displayed if the link is not the first or the last.Until I found this thread, this was how I always achieved this.. In my experience, this fix in particular never worked EXACTLY perfectly for me.. Though the "Home" link is commented out, the code still seems to set the spacing in the toolbar as if a small link is still there. So the alignment was always just a little off.. (especially if you are centering the footer links). I found that the the other suggestion in this thread works better and centering the links does not look slightly off center. Plus it doesn't require a second file edit for the seperator..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

11 Jan 2009, 2:13 AM
#11
kdiscrete avatar

kdiscrete

New Zenner

Join Date:
Jan 2009
Posts:
43
Plugin Contributions:
0

Re: Can't Remove 'Home' From footer?!?!

WOW.. your site looks so professional :cool:

I'm going through the same problem aswell

I have 3 "home" links and I want to get rid of the bottom one

thx for posting this