Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how do i remove 'home - log in' header?

    The page elements in tpl_header.php are all organized in blocks with <!--bof xxxx--> and <!--eof xxxx--> comments around them. You can change the display order of elements by moving whole code blocks to the order desired.

  2. #12
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: how do i remove 'home - log in' header?

    It's also possible to disable the who top navigation by editing the css for #navmain.

    Add this somewhere around the other#navMain tags in stylesheet.css:

    #navMain {
    display: none;
    }

    simple

  3. #13
    Join Date
    Oct 2006
    Posts
    63
    Plugin Contributions
    0

    Default Re: how do i remove 'home - log in' header?

    For those left in limbo here is what I found;

    Delete from line 43 <--bof-navigation display-->
    to line 67 <!--eof-navigation display->

    in the includes/templates/your_template/common/

    A bit late but I only just found this handy little one!

  4. #14
    Join Date
    Jul 2008
    Posts
    44
    Plugin Contributions
    0

    Default Re: how do i remove 'home - log in' header?

    How do I just remove the 'Home' link from the header?

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

    Default Re: how do i remove 'home - log in' header?

    Edit /includes/templates/your_template/common/tpl_header.php (copy it from/template_default/common/ if you don't have it already).
    Find this section:
    PHP Code:
    <!--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>
    and comment out the first <li> item:
    PHP Code:
    <!--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>-->

  6. #16
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: how do i remove 'home - log in' header?

    Hi Glenn et al,
    I also want to move the visible part of header.php (the navigation system) to the footer location.
    So how do I do that?
    There are parts of header.php that, although invisible, are necessary, like the <title> tag and scripts that need to go in <head>.
    Basically, I would like the top of page to be the logo, remove redundant Home link in footer, and move the necessary navigation there.
    However, certain functions that header must perform cannot be affected.
    Thanks.

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

    Default Re: how do i remove 'home - log in' header?

    It's tpl_header.php that has the navigation code, and you can safely move parts of that to tpl_footer.php as long as you keep necessary parts connected (or replicate them to split a div/list in two.)
    The easiest example would be moving the entire #navMain header block to the footer.

  8. #18
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: how do i remove 'home - log in' header?

    Quote Originally Posted by gjh42 View Post
    It's tpl_header.php that has the navigation code, and you can safely move parts of that to tpl_footer.php as long as you keep necessary parts connected (or replicate them to split a div/list in two.)
    The easiest example would be moving the entire #navMain header block to the footer.
    That worked!
    I simply cut the navigation display block from the header and pasted it into the previously selected footer's navigation block (thus replacing it), and the visible part of the header disappeared.
    Logo is on top, sweet!
    Now I need to take it one step further.
    I would like it to be center-aligned, with the pipe operator | in between each item.
    Thanks!

  9. #19
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,374
    Plugin Contributions
    4

    Default Re: how do i remove 'home - log in' header?

    I got the footer (ex-header) menu to center align.
    How?
    It was resisting all my attempts with
    text-align: center;
    in all navMain instances, the sucker staid stuck on the left.
    So I took a good look at it with the Web Dev toolbar and saw that it was a ul .back, searched for that class in the stylesheet and discovered that it had a statement:
    float: left;
    which was causing the grief.
    Since there are other elements that depend on that class, I created another class called .footer and modified the navigation menu in the footer to use it.
    Problem fixed.
    Now, I am still tinkering with the pipe operator, since the menu is a ul, I believe I need to enter something like <li> | </li>.
    PHP is not my forte, if somebody wishes to help me out here is my tpl_footer.php.
    Thanks.
    Attached Files Attached Files

  10. #20
    Join Date
    Oct 2006
    Posts
    151
    Plugin Contributions
    0

    Default Re: how do i remove 'home - log in' header?

    I would also like to remove the Log In header at the top because I am using Google Checkout and I don't want to have a Log In to Zen Cart and one for Google checkout. Where can I remove this. The website is www.desertskyink.net. Thx.

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. How to remove top bar with Home and Log In?
    By vito in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 May 2010, 08:28 AM
  2. How to remove home adn login in header?
    By kimsonvu in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Oct 2007, 02:38 PM
  3. 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