Thread: EZ-pages header

Results 1 to 4 of 4
  1. #1

    Default 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

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default 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
    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 http://www.zen-cart.com/license/2_0.txt 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/

  3. #3

    Default Re: EZ-pages header

    Excellent, thanks a lot!

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default 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

 

 

Similar Threads

  1. v150 moving header text on individual item pages (works fine on their parent pages)
    By irish_1985 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Sep 2012, 07:44 PM
  2. v139h Header on Ez Pages
    By snorkerz in forum General Questions
    Replies: 2
    Last Post: 11 Feb 2012, 10:50 PM
  3. Ez pages on header
    By manton in forum Basic Configuration
    Replies: 2
    Last Post: 28 Jan 2009, 05:02 PM
  4. Space Between Logo-header and EZ-Pages Header
    By Tig in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jul 2008, 07:17 PM
  5. EZ Pages in header
    By dilate in forum General Questions
    Replies: 1
    Last Post: 12 Nov 2006, 02:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg