Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Dec 2004
    Location
    New York, USA
    Posts
    1,198
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Quote Originally Posted by msbettybebe
    color: ##9da7ad;
    Only one '#' in front of the color code.

    From the stylesheet_original.css file (Zen Cart v1.3.0.1):
    Code:
    TD.headerNavigation A, TD.headerNavigation A:visited, td.footertop a  {
      font-weight: bold;
      color: #ffffff;
    }
    
    TD.headerNavigation A:hover, td.footertop a:hover  {
      color: #a8cfff;
    }
    
    TR.
    If you can, using the Mozilla Firefox browser install Chris Pederick's Web Developer extension. It's an invaluable tool for web designers and will help you track down areas of your CSS very nicely.

  2. #12
    Join Date
    Sep 2006
    Location
    Chicago
    Posts
    51
    Plugin Contributions
    0

    Default Re: header navigation bar?

    To change the color and layout I just went into the tpl_header.php file and added my own divs to the file and then added those to my css file. Edited that top bar pretty substantially though. It worked though.

  3. #13
    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!!!

  4. #14
    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

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

    Default Re: header navigation bar?

    Quote Originally Posted by jund View Post
    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
    Figured it out - I was looking in the wrong folder.

    jund

  6. #16
    Join Date
    Mar 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Yeah thm,

    I did the same, tried to comment it out, didn't work for me although...I didn't use an override, would it make that big a difference?
    I would like to remove all the categories from the header aswell since it clutters the page entirely.
    Ken.
    http://modofinder.com/

  7. #17
    Join Date
    Sep 2005
    Posts
    78
    Plugin Contributions
    0

    Default Re: header navigation bar?

    I think this is what you want to do. Try it, It should work. don't use /* */ use <!-- -->

    <!--
    <div id="headerWrapper">
    <!--bof-navigation display-->

    <div id="navMainWrapper">
    <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></l
    i>
    <?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_CONTENT
    S; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?
    ></a></li>
    <?php }?>
    </ul>
    </div>

    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />

    </div>
    -->

  8. #18
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: header navigation bar?

    That will remove the entire header (assuming the ending --> is in the right place).

    To remove just the navbar, comment it here
    HTML Code:
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <!--
    <div id="navMainWrapper">
    <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>
    
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php');?></div>
    <br class="clearBoth" />
    
    </div>
    -->
    Last edited by gjh42; 11 Jun 2008 at 08:29 PM.

  9. #19
    Join Date
    Mar 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Hey,

    Thank you bluetooth and gjh42. Tried gjh42's method, doesn't work.

    Want to try bluetooth's method but not sure how to use them, so far, tried to use

    /*

    and

    */
    where gjh42 suggested, site still has ugly nav bar at the top.

    Any other suggestions out there? It displayed the /* */ above and below the logo of my site only.

    Ken.

    http://modofinder.com/
    Last edited by modofinder; 12 Jun 2008 at 12:06 AM. Reason: Tested and shown above&below logo only

  10. #20
    Join Date
    Sep 2005
    Posts
    78
    Plugin Contributions
    0

    Default Re: header navigation bar?

    Modofinder,

    Both our methods do not use /* */. (php comment)

    Look closely at what we did. We both uses <!-- for the beginning and --> for the end. (html comment)

    Don't use /*

    */

    USE <!--

    -->

 

 
Page 2 of 3 FirstFirst 123 LastLast

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