Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Posts
    17
    Plugin Contributions
    0

    Default Add link to top of all pages

    Would like to add a link to the top of all pages...where the Home Login ect is located. Would like to rename the Home link to Shop Home and add Home or Main to link back to a front end page not in the cart.

  2. #2
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Add link to top of all pages

    I am trying to do the same in 1.3.7, no luck.

    Did you fugure out this?

  3. #3
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Add link to top of all pages

    Quote Originally Posted by acwinc View Post
    Would like to add a link to the top of all pages...where the Home Login ect is located. Would like to rename the Home link to Shop Home and add Home or Main to link back to a front end page not in the cart.
    You would do this in includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    This whole chunk:
    Code:
                <div id="navMainLinks">
                  <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>
    Controls the HOME LOGIN links, and also changes to HOME LOGOFF MY ACCOUNT SHOPPING CART CHECKOUT once someone is logged in and has something in their cart.

    Now, if you want to change the store HOME to "SHOP HOME", just do that in includes/languages/english/YOUR_TEMPLATE/header.php

    To add a new link, before home, change the above to this:

    Code:
                <div id="navMainLinks">
                  <ul class="back">
                    <li><a href="link_here.htm">Title of Link Here</a></li>
                    <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>

  4. #4
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Add link to top of all pages

    Thank you for your time jettrue.

    It will help greatly.

 

 

Similar Threads

  1. v151 Attribute Search filter at top of all category pages
    By enigma666666 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Feb 2016, 09:17 AM
  2. Move 'All Products' Link to top of categories box?
    By mike_9000 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Aug 2009, 06:10 PM
  3. ez pages (top bar) link color change
    By Agent_KGB in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 27 Apr 2009, 01:26 AM
  4. ez pages top menu link color
    By Agent_KGB in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Feb 2009, 12:37 AM
  5. Image on top of all pages below header
    By SEMFUSION in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Jan 2009, 02:56 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