Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Feb 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move navigation bar in header?

    Thanks gjh42, that sounds very complicated I dont think I could do it. But thanks anyway.

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

    Default Re: How to move navigation bar in header?

    This would be one arrangement that could work:
    (/includes/templates/your_template/templates/tpl_modules_categories_tabs.php)
    PHP Code:
    <?php
    /**
     * Module Template - categories_tabs
     *
     * Template stub used to display categories-tabs output
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 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_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $  modified  2010-07-16  gjh42
     */

      
    include(DIR_WS_MODULES zen_get_module_directory(FILENAME_CATEGORIES_TABS));
    ?>
    <?php 
    if (CATEGORIES_TABS_STATUS == '1' && sizeof($links_list) >= 1) { ?>
    <div id="navCatTabsWrapper">
    <div id="navCatTabs">
    <ul>
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">';//line moved from tpl_header ?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <?php for ($i=0$n=sizeof($links_list); $i<$n$i++) { ?>
      <li><?php echo $links_list[$i];?></li>
    <?php ?>
    <?php 
    if ($_SESSION['customer_id']) {//section moved from tpl_header ?>
        <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 } }//end section moved from tpl_header ?>

    </ul>
    </div>
    </div>
    <?php ?>

  3. #13
    Join Date
    Feb 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move navigation bar in header?

    Hello Glen,

    I dont have the route you suggest, I have
    /includes/templates/your_template/sideboxes/tpl_categories (without background for sub-cats).tpl_categories.php
    or
    /includes/templates/your_template/sideboxes/tpl_categories.php
    Which one shuld I use or do I need to create the one that you suggest?
    Thanks,

    Csenge

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

    Default Re: How to move navigation bar in header?

    Save the file in exactly the path I noted (adjust "your_template" to your actual template name). The one you describe is for the categories menu in the sidebar.

  5. #15
    Join Date
    Feb 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move navigation bar in header?

    Hi gjh42,

    thanks, now all the categories/headings i want are in one line except Contact Us. Is there any way you could add that. And then how can i disable the original Home/Contact Us/Log in line? Sorry to be a pain.

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

    Default Re: How to move navigation bar in header?

    The standard Zen Cart header nav does not have a contact us link. You could add a line like this (alter if you know something that needs to be different) inside the <ul> list in the position you want it:
    PHP Code:
        <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US'''SSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US?></a></li>
    You can delete the entire section
    <!--bof-navigation display-->
    ...
    <!--eof-navigation display-->
    from tpl_header.php.

  7. #17
    Join Date
    Feb 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move navigation bar in header?

    Thanks Glen, that works Thanks for all your help!!
    Csenge

  8. #18
    Join Date
    Jul 2010
    Location
    Kent UK
    Posts
    50
    Plugin Contributions
    0

    Default Re: How to move navigation bar in header?

    Is there anyway just to turn the header navigation bar off in the admin? You can do this for Categories etc - Does it pose a problem as a default setup as this is where the login menu is and therfore was not built to be turned off?

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

    Default Re: How to move navigation bar in header?

    This cannot be turned off in admin, as there are several links there that are not necessarily available anywhere else without customization.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How to move navigation bar to under banner (header)?
    By hoang in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Mar 2010, 06:09 PM
  2. How do I move navigation horizontal bar?
    By apples in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 31 Mar 2009, 01:17 PM
  3. Trying to move the Header Navigation Bar to the left
    By milobloom in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 8 Jul 2008, 11:52 AM
  4. Move header navigation bar.
    By Astarkley in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Sep 2007, 04:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR