Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    3
    Plugin Contributions
    0

    help question Remove 'Home' link from navMain?

    Hi,

    which files (and how/what) do I need to edit to remove the 'home' link from navMain, please?
    Editing header.php will affect both the 'home' link in navMain, as well as the one in navBreadCrumb. I would like to keep the latter.

    Thank you!

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

    Default Re: Remove 'Home' link from navMain?

    /includes/templates/your_template/common/tpl_header.php

  3. #3
    Join Date
    Mar 2009
    Posts
    3
    Plugin Contributions
    0

    help question Re: Remove 'Home' link from navMain?

    Quote Originally Posted by gjh42 View Post
    /includes/templates/your_template/common/tpl_header.php
    Quote Originally Posted by shadowcat View Post
    Hi,

    which files (and how/what) do I need to edit to remove the 'home' link from navMain, please?
    Editing header.php will affect both the 'home' link in navMain, as well as the one in navBreadCrumb. I would like to keep the latter.

    Thank you!
    Code:
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    <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>
    <!--eof-navigation display-->

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

    Default Re: Remove 'Home' link from navMain?

    PHP Code:
    <!--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']) { ?>
    Remove the first list item and the code inside it:

    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
    <?php if ($_SESSION['customer_id']) { ?>

  5. #5
    Join Date
    Mar 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Remove 'Home' link from navMain?

    Thank you very much!

 

 

Similar Threads

  1. how to remove home link from ez pages bar?
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Nov 2010, 08:41 PM
  2. Remove / Hide category link from category image on home page
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 15 Mar 2010, 11:50 PM
  3. How do I remove the default home link from EZpage footer bar
    By workbook in forum Basic Configuration
    Replies: 7
    Last Post: 6 Oct 2008, 10:46 PM
  4. Remove the navmain bar from my site
    By Mike_Dean in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 26 Apr 2008, 05:17 AM
  5. Remove Checkout Link from NavMain?
    By saschwarz in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Feb 2008, 05:20 PM

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