Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2005
    Posts
    79
    Plugin Contributions
    0

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

    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.

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: removing the top "home" & "log in" links

    edit includes/templates/YOUR_TEMPLATE/common/tpl_header.php
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  3. #3
    Join Date
    Jul 2005
    Posts
    79
    Plugin Contributions
    0

    Default Re: removing the top "home" & "log in" links

    then what?

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: removing the top "home" & "log in" links

    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
    Code:
    display:none;
    or
    Code:
    visibility: hidden
    to the #navMain class,

    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 !

  5. #5
    Join Date
    Jul 2005
    Posts
    79
    Plugin Contributions
    0

    Default Re: removing the top "home" & "log in" links

    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?

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: removing the top "home" & "log in" links

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

  7. #7
    Join Date
    Oct 2006
    Location
    Lostwithiel, Cornwall
    Posts
    69
    Plugin Contributions
    0

    Default Re: removing the top "home" & "log in" links

    Hi

    Quote Originally Posted by Ryk View Post
    edit includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    I have edited my tp_header file like this:
    Code:
    <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

  8. #8
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: removing the top "home" & "log in" links

    You need to comment out the php lines using // or /*....*/
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  9. #9
    Join Date
    Oct 2006
    Location
    Lostwithiel, Cornwall
    Posts
    69
    Plugin Contributions
    0

    Default Re: removing the top "home" & "log in" links

    Hi

    Quote Originally Posted by Ryk View Post
    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

  10. #10
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: removing the top "home" & "log in" links

    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 !

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Cannot "add to cart", "sign up", or "log in". Returns to home.
    By Damn Kitten in forum General Questions
    Replies: 3
    Last Post: 12 Aug 2013, 03:11 AM
  2. Move "Home" & "Login" links at top of page
    By kp14 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 May 2007, 06:33 PM
  3. Lost my "Home" and "Log In" on the navbar
    By teamfaith in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Apr 2007, 11:34 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