Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Location
    Manitou Beach, Michigan
    Posts
    357
    Plugin Contributions
    0

    Default Where do I Change Links In The Header?

    Hi,
    Where do I go (File to edit) to change the menu content and file link they go to on the: HOME - MY ACCOUNT - SHOPPING CART - CHECKOUT - SEARCH button links under the LOGO/Tag line at the top of the page?
    Thanks,
    Mark

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Where do I Change Links In The Header?

    Are you using a standard template (and therefore template header) or are you using a customised header?

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

    Default Re: Where do I Change Links In The Header?

    Seeing your site live is the best way for us to be sure of what you are using and how best to advise you.

  4. #4
    Join Date
    Aug 2007
    Location
    Manitou Beach, Michigan
    Posts
    357
    Plugin Contributions
    0

    Default Re: Where do I Change Links In The Header?

    HI gjh42,

    Here is a link to the cart.

    http://devilslakeyachtclub.com/DLYC/...ain_page=login

    What I am looking to remove is the shopping cart, Checkout, and the search box and word search from the page through out the cart. There will not be any products or checking out so I want them gone to alleviate confusion and people from playing.
    Thanks for time
    Mark

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Where do I Change Links In The Header?

    The quickest way - without having to remove code - is to just add this to the bottom of your stylesheet, at: includes/templates/twist_of_nature/css/stylesheet.css

    #navMainWrapper {display:none;}
    20 years a Zencart User

  6. #6
    Join Date
    Aug 2007
    Location
    Manitou Beach, Michigan
    Posts
    357
    Plugin Contributions
    0

    Default Re: Where do I Change Links In The Header?

    Hi schoolboy,
    Thanks for the reply. This line worked great but it removed all the links including the home page link. You can only use the browser back button to get back to home you can not get their by a page link. Pages 2 - 7 from the side box menu work ok but not back to home.

    I don't know if you care to look, but I have posted another question on this same cart and the back buttons on the easy pages going to the calendar, I installed this module and the module seems to work fine but with this one little glitch. If you have an idea on this one I appreciate the input
    Thanks for the help.
    Mark

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

    Default Re: Where do I Change Links In The Header?

    If you want part of that navbar to show, you will have to edit /includes/templates/your_template/common/tpl_header.php. Find the section that includes this (there will be PHP code in among this too):
    Code:
    <div id="navMainWrapper">
    <div id="navMain">
    
        <ul class="back">
        <li><a href="http://devilslakeyachtclub.com/DLYC/DLYCcart/">&nbsp;Home</a></li>
        <li><a href="http://devilslakeyachtclub.com/DLYC/DLYCcart/index.php?main_page=login&amp;zenid=cf2b272f4c291f50b675d959738a0c4c">Log In</a></li>
    
        <li><a href="http://devilslakeyachtclub.com/DLYC/DLYCcart/index.php?main_page=shopping_cart&amp;zenid=cf2b272f4c291f50b675d959738a0c4c">Shopping Cart</a></li>
        <li><a href="http://devilslakeyachtclub.com/DLYC/DLYCcart/index.php?main_page=checkout_shipping&amp;zenid=cf2b272f4c291f50b675d959738a0c4c">Checkout</a></li>
    
    
    </ul>
    </div>
    Delete the <li> lines that contain links you don't want, as well as any PHP code relating to them. Do one at a time and keep backups in case you make a mistake.

  8. #8
    Join Date
    Aug 2007
    Location
    Manitou Beach, Michigan
    Posts
    357
    Plugin Contributions
    0

    Default Re: Where do I Change Links In The Header?

    HI jgh42,
    Thank you for the reply. I will give this a shot. Part of the time I can figure these adjustments out. Most of the battle is figuring out what file need to be edited to produce the results. (LOL)
    Thanks you again,
    Mark

  9. #9
    Join Date
    Aug 2007
    Location
    Manitou Beach, Michigan
    Posts
    357
    Plugin Contributions
    0

    Default Re: Where do I Change Links In The Header?

    Hi jgh42,

    I looked for the code you enclosed but did not find the same thing. Here is what I have.
    ***************************
    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<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_header.php 4066 2006-08-06 05:50:06Z ajeh $
    */
    ?>

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>


    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>

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

    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="<?php
    $page = $_GET['main_page'];
    $cPath = $_GET['cPath'];
    if ($page == "index" && $cPath < 1 )
    { echo "logoWrapper"; }
    else
    { echo "logoWrapper".rand ( 1 , 6 ); }
    ?>">

    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>

    <?php if ($_SESSION['customer_id']) { ?>
    <div class="my-acct"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></div>
    <?php } ?>
    </div>



    <!--eof-branding display-->




    <!--eof-header logo and navigation display-->

    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->



    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>&nbsp;<?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <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 } } ?>

    <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>



    </ul>
    </div>
    <div id="navMainSearch">


    <form name="quick_find_header" method="get" action="index.php?main_page=advanced_search_result">
    <input name="main_page" value="advanced_search_result" type="hidden">
    <input name="search_in_description" value="1" type="hidden">
    <input name="keyword" size="6" maxlength="35" style="width: 117px; height: 13px; margin: 0;" value="Enter
    search keywords here" onfocus="this.value = '';" onblur="if (this.value == '') this.value =
    'Enter search keywords here';" type="text">
    <input class="cssButton button_search" onmouseover="this.className='cssButtonHover button_search button_searchHover'" onmouseout="this.className='cssButton
    button_search'" value="Search" style="width: 80px;" type="submit"></form>


    </div>
    </div>


    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>
    *********************************************

    I find some text that matches but not much. I am going to do some tinkering but will check back.
    Mark

  10. #10
    Join Date
    Aug 2007
    Location
    Manitou Beach, Michigan
    Posts
    357
    Plugin Contributions
    0

    Default Re: Where do I Change Links In The Header?

    Hi jgh42,
    I was able to pick the lines out of the file. Thanks again for pointing me in the right direction.
    Mark

 

 

Similar Threads

  1. How can I change the font color of the links in the lower part fo the header
    By Marlake in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2011, 06:00 PM
  2. Cant find where to change external links in my header
    By snarfy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Oct 2009, 06:59 PM
  3. how and where do i change the header?
    By rjgonzalez in forum General Questions
    Replies: 8
    Last Post: 26 Feb 2009, 03:45 AM
  4. Where to change the Category page header
    By Live Wien in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 May 2008, 10:14 AM
  5. Changing where the header links to?
    By NickJRE in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 May 2007, 03:49 PM

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