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
Views: 14,978
Zen Follower
i want to remove this header bat totally. cani swicth it off?
thanks
Black Belt
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.
Zen Follower
acutally i want to add 'my account page' and jusify the whole lot right. any ideas how i do that? thanks.
New Zenner
I also want to get rid of these and put everything in a sidebox - can anyone help?
New Zenner
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.
Zen Follower
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
Zen Follower
Hello,
Or maybe a bit easier if I can move the header bar link to under the logo.gif
Kind regards,
Anthony
Zen Follower
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
Black Belt
Yep, that's the standard way to do this. You can also move the code to tpl_footer.php if you want it there.
New Zenner
Hi xman888,
Could you explain more about the code?
I'm lost here....
Marsu
Black Belt
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.
New Zenner
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:
New Zenner
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!
New Zenner
How do I just remove the 'Home' link from the header?
Black Belt
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
Totally Zenned
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.
Black Belt
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.
Totally Zenned
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!
Totally Zenned
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.
Zen Follower
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.
Tell staff why this post should be reviewed.