Forums / Templates, Stylesheets, Page Layout / Footer links / EZ-Pages, a link I can't get rid of

Footer links / EZ-Pages, a link I can't get rid of

Locked

Views: 998

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Oct 2009, 8:50 PM
#1
murphys avatar

murphys

New Zenner

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

Footer links / EZ-Pages, a link I can't get rid of

So I am using EZ-Pages for links in my header and footer, my footer has more links (privacy, site map etc) than my footer.

What my problem is that I have an extra 'Home' link in my footer where there shouldn't be one. (The image should explain it better)

Basically, as can be seen, all the links I have there using EZ-Pages are in lower case, but .. for some reason I now have 2 'Home' links.

The first one (With uppercase H) shouldn't be there and I have no idea where it came from.

It's not in EZ-Pages (I have one 'home' link in EZ-Pages, using lowercase 'h')

I used the developer toolkit to search for all instances of the word 'home' / 'Home' ... Nothing that I can see shows me where it is coming from ...

It isn't affecting the header, all is as it should be.

Any help is appreciated ...

9 Oct 2009, 9:46 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Footer links / EZ-Pages, a link I can't get rid of

murphys:

So I am using EZ-Pages for links in my header and footer, my footer has more links (privacy, site map etc) than my footer.

What my problem is that I have an extra 'Home' link in my footer where there shouldn't be one. (The image should explain it better)

Basically, as can be seen, all the links I have there using EZ-Pages are in lower case, but .. for some reason I now have 2 'Home' links.

The first one (With uppercase H) shouldn't be there and I have no idea where it came from.

It's not in EZ-Pages (I have one 'home' link in EZ-Pages, using lowercase 'h')

I used the developer toolkit to search for all instances of the word 'home' / 'Home' ... Nothing that I can see shows me where it is coming from ...

It isn't affecting the header, all is as it should be.

Any help is appreciated ...

open includes/templates/YOUR_TEMPLATE/common/tpl_footer.php

delete/comment out the following line of code (around line 30)

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

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 Oct 2009, 1:24 PM
#3
murphys avatar

murphys

New Zenner

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

Re: Footer links / EZ-Pages, a link I can't get rid of

Hi clydejones,

Thanks for that, worked great .. except I now have a link separator in from of 'home' where there shouldn't be one.

10 Oct 2009, 2:30 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Footer links / EZ-Pages, a link I can't get rid of

Edit /includes/templates/your_template/templates/tpl_ezpages_bar_footer.php:```php

<?php if (sizeof($var_linksList) >= 1) { ?> <?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?> <?php echo ($i <= $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>

<a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a>

<?php } // end FOR loop ?> <?php } ?>

$i <= $n ?

test to

($i > 1 and $i <= $n )?```php
<?php echo (($i > 1 and $i <= $n )? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>
10 Oct 2009, 4:42 PM
#5
murphys avatar

murphys

New Zenner

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

Re: Footer links / EZ-Pages, a link I can't get rid of

Hi Glenn, worked perfectly .. Thanks to both of you for your help, much appreciated .. :)