Forums / Templates, Stylesheets, Page Layout / How to move the links from nav main wrapper?

How to move the links from nav main wrapper?

Locked

Views: 1,774

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Aug 2008, 3:39 PM
#1
mister_norway avatar

mister_norway

New Zenner

Join Date:
Nov 2006
Posts:
23
Plugin Contributions:
0

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.

17 Aug 2008, 11:04 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

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.


Play with it long enough and you will break it.
17 Aug 2008, 8:17 PM
#3
mister_norway avatar

mister_norway

New Zenner

Join Date:
Nov 2006
Posts:
23
Plugin Contributions:
0

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!

17 Aug 2008, 8:33 PM
#4
mister_norway avatar

mister_norway

New Zenner

Join Date:
Nov 2006
Posts:
23
Plugin Contributions:
0

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)

18 Aug 2008, 4:07 AM
#5
mister_norway avatar

mister_norway

New Zenner

Join Date:
Nov 2006
Posts:
23
Plugin Contributions:
0

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.