Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    5
    Plugin Contributions
    0

    Default Separate spacing between Home Log In Shopping Cart Checkout

    Does anyone know how to separate the spacing between Home Log In Shopping Cart Checkout or make it into Home | Log In | Shopping Cart | Checkout to separate?

    Currently every word is separated by one space since the | doesn't come with the latest version.

    Thanks!

  2. #2
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Separate spacing between Home Log In Shopping Cart Checkout

    The topic below may helps.
    1.3.5 - Home | Login separator not visible

    .
    A New Starter again

  3. #3
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Separate spacing between Home Log In Shopping Cart Checkout

    * needhelp123

    You are welcome!

    As requested, I give below steps for your reference.

    1. copy the following file (if you didn't modified it before) from the original location.
    includes/templates/template_default/common/tpl_header.php

    2. save the above copied file, to your override template directory:
    includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    3. in the newly saved file, find the following section and lines,
    for v1.3.5 and untouched file, it should start at about line #43

    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']) { ?>
        <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 class="navMainSearch forward"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    And changed to read as follow:

    Note:
    in the code below, the forum displayed the escape code
    & #124; (without out any space!)
    and show as a pipeline: |
    Please use the escape code & #124; (without out any space!) instead, for the html validation.

    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><li id=navMainMySeparator>&nbsp;|</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 id=navMainMySeparator>&nbsp;|</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 id=navMainMySeparator>&nbsp;|</li><li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li><li id=navMainMySeparator>&nbsp;|</li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
    <?php }?>
    </ul>
    </div>
    <div class="navMainSearch forward"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->

    And the css below for the style of the separators if needed. And insert it to the end of your stylesheet.
    Code:
    #navMainMySeparator {
    	color: yellow;
    }

    Also attached the modified v1.3.5 file for reference.

    Hope this helps.

    .
    Attached Files Attached Files
    Last edited by seethrou; 25 Oct 2006 at 02:01 PM. Reason: Remove Typo.
    A New Starter again

 

 

Similar Threads

  1. Trying to center the Home - Log In - Shopping Cart links
    By amandarm in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Feb 2015, 01:20 PM
  2. Can't Checkout - Checkout redirects to Shopping Cart Home
    By fmckinnon in forum General Questions
    Replies: 6
    Last Post: 1 Aug 2010, 12:53 AM
  3. Trying to center the Home | Log In | Shopping Cart links
    By JHouse in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 14 Aug 2008, 07:30 AM
  4. spacing between home and log in
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Apr 2007, 01:04 AM

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