Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2004
    Posts
    156
    Plugin Contributions
    0

    Default Move Home and Log In Links

    I want to switch the "Home" & "Log in" links at the top. Currently Home is to the right and Log in is to the left. I want to reverse that, where do I do that?
    Stacee Edwards

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

    Default Re: Move Home and Log In Links

    In a copy of the header.php file placed into your template
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2004
    Posts
    156
    Plugin Contributions
    0

    Default Re: Move Home and Log In Links

    But where exactly? Which part do I move? I see the login part but where is the home link?
    Stacee Edwards

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

    Default Re: Move Home and Log In Links

    In tpl_header.php, find the section beginning with <!--bof-navigation display-->:
    PHP Code:
    <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 } } ?>
    ...
    Move the line
    PHP Code:
    <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    to below the
    PHP Code:
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
    <?php } } ?>
    HEADER_TITLE_CATALOG is the constant that holds the text for the home link.

  5. #5
    Join Date
    Sep 2004
    Posts
    156
    Plugin Contributions
    0

    Default Re: Move Home and Log In Links

    Thank you so much! For anyone else trying to do this the location of the header file is /includes/templates/template_default/common/tpl_header.php
    Stacee Edwards

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

    Default Re: Move Home and Log In Links

    And you should copy this file to /includes/templates/your_template/common/tpl_header.php before making the edits.

    Always keep modified files in your custom template folders so they will be safe during upgrades, and you know which files you have changed.

  7. #7
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Move Home and Log In Links

    I have tried this and don't get anywhere. Get a blank page...

    I moved:
    <!--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-->


    cut an moved it below
    <!--eof-branding display-->


    Why is it not working?
    Live and learn... the Zen way.

 

 

Similar Threads

  1. 'Home' and 'Log In' Links
    By Question in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Oct 2009, 04:02 AM
  2. Move top page ''home'' and ''log in'' to categories tabs
    By J.P. in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Oct 2008, 10:20 PM
  3. Home and Log-in - how to move?
    By taag in forum General Questions
    Replies: 6
    Last Post: 9 Oct 2008, 11:33 PM
  4. How do i disable home and log links?
    By maomaochong in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Jun 2008, 12:56 PM
  5. How do I move Home and Log In etc. to right side of header?
    By anduril3019 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jan 2007, 12:12 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