Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    23
    Plugin Contributions
    0

    Default How to move the links from nav main wrapper?

    Any admins if you read this, the title of this post is probably not very correct, but I couldnt find any better description with my english vocabulary.

    I have made a <p> in the bottom of the header wrapper where i place some images with "Home", "Log in" etc.

    What i want to do, is make the image "Log in" change to "log out" after the visitor has logged in. I also want a image with "My account" to show up when he has logged in. The "checkout" link i just want to remove.

    Basically I want to remove every links from the nav main wrapper.

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: How to move the links from nav main wrapper?

    includes>templates>your template>common>tpl_header.php

    find
    <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']) { ?>

    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>

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

    and the red code is the links you are talking about.

  3. #3
    Join Date
    Nov 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: How to move the links from nav main wrapper?

    Oh my, that worked just how I was hoping it would work, the first time i tried it.

    You just made me so happy.. thanks man!

  4. #4
    Join Date
    Nov 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: How to move the links from nav main wrapper?

    By the way..

    Now I have managed to move the links where i want them, but I also want to change the links wich just are text into images.

    Any idea of what file I need to edit to get images instead of just text? (and of course, I will remove the text and just write it onto the picture in photoshop)

  5. #5
    Join Date
    Nov 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: How to move the links from nav main wrapper?

    I actually found it out myself "the hard way"..

    ...my way of doing it probably sucks and is maybe wrong but it looks perfect in IE7 and Firefox, so Im happy with it.

    I will tell how I did it soon.

 

 

Similar Threads

  1. Move Header Above the Main Wrapper
    By acreativepage in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Oct 2009, 08:51 AM
  2. Adding links to the main (top) nav
    By ktomas in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jul 2009, 09:52 PM
  3. Move main nav items to categories nav
    By glennnz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 May 2008, 08:14 AM
  4. nav main wrapper
    By Cecile in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 May 2008, 11:42 AM
  5. have a question about main nav.. - can I use images for the links?
    By Pariseau in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Apr 2008, 04:29 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