Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default What file to edit Header?

    I have recently added a forum to my site and want to include a link on the top of the Zencart header. Currently there is "Home" and "Login" at the top. I simply want to add "Forum" along side these links at the top. How can I add this: what file and where is it located? Thanks in advance?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What file to edit Header?

    Actually once logged in there are several other links that appear on that line
    I would make your forum link last

    In a copy for your template structure (override) of tpl_header.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: What file to edit Header?

    Thanks. I have found the file. What is the appropiate method to insert my forum link at the end without causing errors? Sample code would be appreciated.

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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What file to edit Header?

    Try this, using a code editor insert the red highlighted code correcting for your details


    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 }?>
        li><a href="http://your_domain.com/your_forum" rel="nofollow">My Forum</a></li>
    </ul>
    </div>
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: What file to edit Header?

    Thanks for the help, that worked. One more question for you please. What file should I post my Google Analytics code into? /includes/languages/english/index.php? Thanks agaiin
    Last edited by kloberemt; 15 Feb 2011 at 09:42 PM. Reason: adding directory for further help

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: What file to edit Header?

    Can be added to tpl_footer.php
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. What File Do I Edit?
    By Globie in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2008, 10:59 PM
  2. What file do I edit?
    By ebaobao in forum General Questions
    Replies: 1
    Last Post: 24 Aug 2008, 12:42 AM
  3. What file must i edit and what must i do in the admin
    By Gunga in forum Basic Configuration
    Replies: 12
    Last Post: 27 Feb 2008, 04:58 PM
  4. Product Listing - What file do I edit?
    By bjraines in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Oct 2006, 04:50 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