Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    107
    Plugin Contributions
    0

    Default header navigation bar?

    Hi all
    Ive had a good look around but can't seem to find any reference to the header navigation bar.

    I wish to remove it, I am using 1.3.0.2.

    And: Is there a template that points to all the areas of the shop and gives names as there was in 1.2.6,

    Regards
    Andy

  2. #2
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: header navigation bar?

    This depends on which header nav bar you are wanting to remove.

    If it is is the header bar which shows all of your categories - that is the Category Tabs menu and can be turned off in Configuration / Layout Settings in the admin.

    If it is the Top bar with Home - etc. It is EZPages, and they can be turned off in the admin under Congifuration /EZPages

    If it is the very top home / login / checkout that is in the file includes/templates/YOURTEMPLATE/common/tpl_header (it is commented and is the header navigation) There's also a place to turn it off in admin that I simply cannot think of right now.

    If it is the header menu that is trailing you are you navigate (It changes from HOME to HOME : CATEGORY : PRODUCT as you navigate your site) that is the Breadcrumb and it is turned on / off in the Configuration / Layout settings as well.

    Hope that helps
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  3. #3
    Join Date
    Oct 2005
    Posts
    107
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Thats the one below.

    If it is the very top home / login / checkout that is in the file includes/templates/YOURTEMPLATE/common/tpl_header (it is commented and is the header navigation) There's also a place to turn it off in admin that I simply cannot think of right now.

    Thanks for the reply.

    Andy

  4. #4
    Join Date
    Dec 2004
    Location
    New York, USA
    Posts
    1,198
    Plugin Contributions
    0

    Default Re: header navigation bar?

    AFAIK there isn't a switch specifically for turning ON/OFF the header navigation. However, in your override copy of tpl_header.php, you can remove or comment out the following:
    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>

  5. #5
    Join Date
    Aug 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: header navigation bar?

    LIB, do you remove all tha tcoding? I was looking 4 the same info...

  6. #6
    Join Date
    Dec 2004
    Location
    New York, USA
    Posts
    1,198
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Yes. That code is from the default tpl_header.php file located in
    includes/templates/template_default/common/

    The code can be commented out or removed. Try commenting out the code first to make sure the results are what you are looking for. It looks a little different in the classic template override of tpl_header.php. There it is encapsulated in a table. You should be able to find the same area of code. Make sure you edit a copy placed in your own custom template override directory.

    Always make backups of files BEFORE making modifications. :)

  7. #7
    Join Date
    Mar 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Quote Originally Posted by lib99 View Post
    AFAIK there isn't a switch specifically for turning ON/OFF the header navigation. However, in your override copy of tpl_header.php, you can remove or comment out the following:
    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    I tried to do what was mentioned above and could not do it. I placed all the code between /* and */ and it just shows up with /* printed before the header and */ printed after the header. Didn't disable it.

    What am I doing wrong? Isn't commenting just placing code between those two?

    HELP!!!

  8. #8
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: header navigation bar?

    I put the Search form in the nav bar. Now I cannot find where I did that. I want to go back and edit it - my brain has fried... can someone please tell me where the search form is located?
    Thank you,
    jund
    Last edited by jund; 19 May 2007 at 12:24 AM. Reason: forgot to sign the post

 

 

Similar Threads

  1. Move header navigation bar.
    By Astarkley in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Sep 2007, 04:59 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