Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how do i remove 'home - log in' header?

how do i remove 'home - log in' header?

Views: 14,978

Results 1 to 20 of 32
12 Nov 2007, 3:06 PM
#1
what44 avatar

what44

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

how do i remove 'home - log in' header?

i want to remove this header bat totally. cani swicth it off?

thanks

12 Nov 2007, 5:44 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

There is not a switch in admin to remove the header navbar. You would have to edit /includes/tempates/your_template/common/tpl_header.php.

You should think carefully before you try this - there are links that appear when appropriate in that bar like My Account, Shopping Cart, Checkout. Don't eliminate that without providing the links somewhere else easy to use.

12 Nov 2007, 6:05 PM
#3
what44 avatar

what44

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

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

acutally i want to add 'my account page' and jusify the whole lot right. any ideas how i do that? thanks.

2 Dec 2007, 12:53 PM
#4
lou avatar

lou

New Zenner

Join Date:
Dec 2007
Posts:
21
Plugin Contributions:
0

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

I also want to get rid of these and put everything in a sidebox - can anyone help?

2 Dec 2007, 4:24 PM
#5
lou avatar

lou

New Zenner

Join Date:
Dec 2007
Posts:
21
Plugin Contributions:
0

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

I found the pointers I needed in this thread

http://www.zen-cart.com/forum/showthread.php?t=80024

basically, edit the tpl_header.php file.

20 Feb 2008, 9:34 AM
#6
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

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

Hello,

I am actually looking to remove the whole header link bar, so that the first (top most thing) on my page is the logo.gif.

I am looking to put the links that appear there in the footer.

Is this possible by deleting a bit of code from the includes/tempates/your_template/common/tpl_header.php file

and then adding some to the :

includes/tempates/your_template/common/tpl_footer.php file ?

Kind regards,
Anthony

20 Feb 2008, 9:55 AM
#7
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

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

Hello,

Or maybe a bit easier if I can move the header bar link to under the logo.gif

Kind regards,
Anthony

20 Feb 2008, 10:00 AM
#8
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

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

Hello,

Just found out how to do it.

I just put the code for the header bar underneath the code for the logo.gif

Cheers,
Anthony

22 Feb 2008, 1:23 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

Yep, that's the standard way to do this. You can also move the code to tpl_footer.php if you want it there.

8 Apr 2008, 1:33 PM
#10
marsupilami avatar

marsupilami

New Zenner

Join Date:
Feb 2006
Posts:
8
Plugin Contributions:
0

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

Hi xman888,

Could you explain more about the code?
I'm lost here....

Marsu

8 Apr 2008, 7:33 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

19 Jun 2008, 4:46 AM
#12
intuwishin avatar

intuwishin

New Zenner

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

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 :smile:

26 Jul 2008, 11:08 AM
#13
jaden avatar

jaden

New Zenner

Join Date:
Oct 2006
Posts:
63
Plugin Contributions:
0

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!

29 Sep 2008, 4:38 PM
#14
monkeypeach avatar

monkeypeach

New Zenner

Join Date:
Jul 2008
Posts:
44
Plugin Contributions:
0

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

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

29 Sep 2008, 7:16 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

<!--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 <!--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>--> ```
29 Sep 2008, 10:58 PM
#16
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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.

29 Sep 2008, 11:28 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

30 Sep 2008, 1:37 AM
#18
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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

gjh42:

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!

1 Oct 2008, 1:36 AM
#19
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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.

27 Oct 2008, 6:51 PM
#20
handkem avatar

handkem

Zen Follower

Join Date:
Oct 2006
Posts:
152
Plugin Contributions:
0

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.