Zen Cart Logo
Forums / General Questions / EZ-pages header

EZ-pages header

Locked

Views: 1,140

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 Dec 2007, 8:04 AM
#1
boghead avatar

boghead

New Zenner

Join Date:
Oct 2007
Posts:
21
Plugin Contributions:
0

EZ-pages header

I'm trying to remove the ez-pages header from all pages except for the main page, an option that isn't included in the Admin->Configuration->EZ-Pages setup.

Anyone know how this can be done?

Thanks

17 Dec 2007, 9:05 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: EZ-pages header

Try this....
Find the following file..
/includes/templates/template_default/templates/tpl_ezpages_bar_header.php
BACK IT UP..MAKE A COPY BEFORE ALTERING
Create a new tpl_expages_bar_header.php with the following code

 <?php
if ($this_is_home_page) { //execute only on home page
/**
 * Page Template
 *
 * Displays EZ-Pages Header-Bar content.<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
 * @version $Id: tpl_ezpages_bar_header.php 3377 2006-04-05 04:43:11Z ajeh $
 */
  /**
   * require code to show EZ-Pages list
   */
  include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
  } //execute only on home page
?>
<?php if (sizeof($var_linksList) >= 1) { ?>
<div id="navEZPagesTop">
<?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_HEADER : '') . "\n"; ?>
<?php } // end FOR loop ?>
</div>
<?php } ?>

SAVE this new tpl_expages_bar_header.php file into
/includes/templates/nameofyourcurrenttemplate/templates/
Tested/working on demo site at
http://www.dezinashop.com/demo/

17 Dec 2007, 10:53 AM
#3
boghead avatar

boghead

New Zenner

Join Date:
Oct 2007
Posts:
21
Plugin Contributions:
0

Re: EZ-pages header

Excellent, thanks a lot!

17 Dec 2007, 10:58 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: EZ-pages header

No problem..
BTW..there is a spelling error in my instructions
i.e.

SAVE this new tpl_expages_bar_header.php file into
should read
SAVE this new tpl_ezpages_bar_header.php file into
:smile: