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.
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.
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![]()
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!
How do I just remove the 'Home' link from the 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: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>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>-->
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.
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!
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.
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.