Forums / Templates, Stylesheets, Page Layout / How can I remove the home button in the bottom of the page?

How can I remove the home button in the bottom of the page?

Started by jottoleivi on 30 Dec 2007, 9:08 PM · Views: 7,198

Results 1 to 18 of 18
30 Dec 2007, 9:08 PM
#1
jottoleivi avatar

jottoleivi

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

How can I remove the home button in the bottom of the page?

By disabling EZ-Pages Display Status - FooterBar the link home is still showing up.

I looked for it here but coudn't find it.
Look in includes/templates/YOUR_TEMPLATE/common/tpl_footer.php.

Can someone please tell me where the "Home" link at the bottom of the main index.php page is located as I want to change or maybe even remove it.

Help appreciated.

--Christian

30 Dec 2007, 9:38 PM
#2
kobra avatar

kobra

Black Belt

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

Re: How can I remove the home button in the bottom of the page?

In the file that you referenced comment out or remove this line

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

Zen-Venom Get Bitten

30 Dec 2007, 10:09 PM
#3
jottoleivi avatar

jottoleivi

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

Perfect! :smile: Thanks. Kobra

31 Jan 2008, 12:02 AM
#4
bobio avatar

bobio

New Zenner

Join Date:
Dec 2007
Posts:
27
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

how would you go about commenting this line out without messing up the code

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
31 Jan 2008, 6:56 AM
#5
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: How can I remove the home button in the bottom of the page?

change

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

to

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

should do the trick.

Notice the red // in the replacement code

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

1 Feb 2008, 12:23 AM
#6
bobio avatar

bobio

New Zenner

Join Date:
Dec 2007
Posts:
27
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

thanks, I could not figure that darn thing out.

1 Feb 2008, 12:31 AM
#7
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: How can I remove the home button in the bottom of the page?

be sure to edit as stated above or you could result in a php error.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

3 Feb 2008, 6:16 PM
#8
jocando avatar

jocando

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

Hello.

I'm also trying to get rid of the 'Home' link in the footer. I tried the above, but the whole footer disappeared!
Any thoughts as to why?

3 Feb 2008, 6:31 PM
#9
kobra avatar

kobra

Black Belt

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

Re: How can I remove the home button in the bottom of the page?

Did you add the comment enclosures correctly?

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

Zen-Venom Get Bitten

3 Feb 2008, 7:40 PM
#10
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: How can I remove the home button in the bottom of the page?

If you are using the default files that have not been modified this around line 30 in the
includes --> templates --> template_default --> common --> tpl_footer.php

Or use the attached file and replace with yours, remember this is using the default php file that came with zencart and not modified in any way. Except the above edits. Also this file is 1.3.8a not any older versions

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

15 Feb 2008, 1:48 PM
#11
rvagrrl avatar

rvagrrl

New Zenner

Join Date:
Oct 2005
Posts:
90
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

I used this code and it removed the home, but it left the divider that was between Home and the first EZ-Page. So instead of being:

About Us :: FAQ :: Stores :: Wholesale Application :: Contact Us

it's:

:: About Us :: FAQ :: Stores :: Wholesale Application :: Contact Us

Any idea how I can get rid of the first ::? I've played with the code a bunch, but can't seem to get it. =/

Thank you!

15 Feb 2008, 4:38 PM
#12
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: How can I remove the home button in the bottom of the page?

--scratching head -- :oops:

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

15 Feb 2008, 8:52 PM
#13
kobra avatar

kobra

Black Belt

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

Re: How can I remove the home button in the bottom of the page?

rvagrrl,

For what you asked - Replace all the functional code(below the comments) in a copy of your tpl_ezpages_bar_footer.php file with this - For others this is after removing the home link as described earlier.

  include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_footer.php'));
?>
<?php if (sizeof($var_linksList) >= 1) { ?>
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {  ?>
  <a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ($i < $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>
<?php } // end FOR loop ?>
<?php } ?>

Zen-Venom Get Bitten

2 Apr 2008, 8:24 PM
#14
rvagrrl avatar

rvagrrl

New Zenner

Join Date:
Oct 2005
Posts:
90
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

Late reply (forgot to subscribe to the thread), but thanks so much, kobra! Worked like a charm. =)

1 Feb 2011, 9:27 PM
#15
jordan_jed avatar

jordan_jed

New Zenner

Join Date:
Mar 2010
Location:
New York
Posts:
10
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

I still have a "home" there. The link is gone, but the word home is still in the footer. I am also trying to remove a white line above the footer. It cuts through my background image. Any ideas on that?

2 Feb 2011, 1:05 PM
#16
jordan_jed avatar

jordan_jed

New Zenner

Join Date:
Mar 2010
Location:
New York
Posts:
10
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

Never mind...I figured it out.

1 Jul 2011, 12:25 PM
#17
graphicman avatar

graphicman

New Zenner

Join Date:
Dec 2004
Location:
Wakefield. UK
Posts:
82
Plugin Contributions:
0

Re: How can I remove the home button in the bottom of the page?

Kobra

I've just removed the following code and removed the links succesfully - thanks for your post.

<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'); ?>

What i would like to do now is put an image where the links was. can you please help me with the code that i would need to do that.

Thanks in advance

13 Mar 2019, 4:05 PM
#18
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: How can I remove the home button in the bottom of the page?

In the future there will be a switch in admin for this, but for now and future upgrade compliance this is one method of hiding the hard coded HOME link:

<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<ul>
<!-- <li><?php // Twitch remove hard coded HOME button echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?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'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
<?php } ?>
</ul>
</div>
</div>
<!--eof-navigation display -->

To hide the EZ pages footer:
Admin > Configuration > EZ-Pages Settings >** EZ-Pages Display Status - FooterBar **- Set to 0 = Off

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian