Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / removing the top "home" & "log in" links

removing the top "home" & "log in" links

Locked
This thread is locked. New replies are disabled.
1 Jan 2007, 7:21 PM
#1
tarynhipp avatar

tarynhipp

New Zenner

Join Date:
Jul 2005
Posts:
79
Plugin Contributions:
0

Post #1 by tarynhipp

can i remove the top bar with the "home" & "log in" links? since the title image links home & i can put the log in link elsewhere i would like to remove that completely.

thanks.

1 Jan 2007, 7:33 PM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #2 by ryk

edit includes/templates/YOUR_TEMPLATE/common/tpl_header.php

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

1 Jan 2007, 7:37 PM
#3
tarynhipp avatar

tarynhipp

New Zenner

Join Date:
Jul 2005
Posts:
79
Plugin Contributions:
0

Post #3 by tarynhipp

then what?

1 Jan 2007, 7:53 PM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #4 by ryk

Study the file and figure out which section generates the two links in question - but be aware that once logged in, the "login" changes to "logout"+ links to the cart and checkout.

The relevant section is all within <div id="navMain"> ... and therefore you could, in fact, use css to hide it, simply by editing your stylesheet and adding either display:none;or ```
visibility: hidden


The difference between them is that the former does not render the element at all and therefore takes up no space, whereas the second simply hides it but reserves the space. But remember the logged in state.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

1 Jan 2007, 8:01 PM
#5
tarynhipp avatar

tarynhipp

New Zenner

Join Date:
Jul 2005
Posts:
79
Plugin Contributions:
0

Post #5 by tarynhipp

so it might be best to keep it right where it is... is there a way to put it on top of my title image?

1 Jan 2007, 8:21 PM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #6 by ryk

Use css for positioning.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Jan 2007, 2:15 PM
#7
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Post #7 by cregy

Hi

Ryk:

edit includes/templates/YOUR_TEMPLATE/common/tpl_header.php

I have edited my tp_header file like this:

<div id="navMain">
    <ul class="back">
    <a href="http://uzellacourtantiques.co.uk/">Home</a>
<!--    <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>

I have edited out the whole code apart from at the very top a standard a href= pointing to the home page. But when you look at the site the login link is still there!
http://uzellacourtantiques.co.uk

Any ideas please? I would like to keep the bar.

Thanks

Rich

20 Jan 2007, 3:00 PM
#8
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #8 by ryk

You need to comment out the php lines using // or /..../

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Jan 2007, 3:08 PM
#9
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Post #9 by cregy

Hi

Ryk:

You need to comment out the php lines using // or /..../

Thanks for the reply. If I use // or /* it doesn't get uncommented. So I just deleted the whole lot. Nothing still happens. The login link remains.

Is it possible to maybe take the whole line out and put a home page link elsewhere please? Or am I doing something wrong somewhere?

Many thanks

Rich

20 Jan 2007, 3:15 PM
#10
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #10 by ryk

Well it isn't there now. Did you Refresh your page?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Jan 2007, 3:22 PM
#11
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Post #11 by cregy

Hi

Thanks - it was a case of refreshing several times!

Sorry for the last post - unnecessary!

Rich

20 Jan 2007, 3:40 PM
#12
waveneybooks avatar

waveneybooks

New Zenner

Join Date:
Sep 2006
Location:
Suffolk, UK
Posts:
64
Plugin Contributions:
0

Post #12 by waveneybooks

Cregy

I love the design of your site, think it looks great. :smile:

Tina

20 Jan 2007, 4:49 PM
#13
cregy avatar

cregy

New Zenner

Join Date:
Oct 2006
Location:
Lostwithiel, Cornwall
Posts:
69
Plugin Contributions:
0

Post #13 by cregy

Thanks Tina. :blush:

I'm trying to get a classical feel. I hope I'm getting there.

Rich