Is there any way to move the navigation bar in the header below the logo, instead of on top of it.
Is there any way to move the navigation bar in the header below the logo, instead of on top of it.
I discovered the answer to my own question!
Just found the answer a few minutes after I posted. Here it is for anyone else frantically searching for the answer as to how to move the navigation bar with home/login links to below the logo image.
BE SURE TO MAKE A BACKUP YOUR TPL_HEADER.PHP FILE BEFORE DOING THIS!!
1. open the file includes/templates/your_custom_template/common/tpl_header.php
2. cut ALL of the code between the following 2 lines (be sure to leave both of these lines where they are and do NOT cut them):
PHP Code:
<!--bof-header logo and navigation display-->
<!--bof-branding display-->
3. paste your cut code BETWEEN these two lines
That's it... so simple but being the NOT so php savvy person (and knowing nothing about php syntax) it took me quite a while to actually understand what code to move and where to move it to!!PHP Code:
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
Good learning experience
Zencart ROCKS!
You got it almost right, but if I understand your directions correctly, there is a substantive error.
When you move code blocks, you should move entire blocks between and including the
<!--bof xxxx--> and <!--eof xxxx--> comments, to keep the identification correct.
You should not move the
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
which is between the
<!--bof-header logo and navigation display-->
and
<!--bof-navigation display-->
You should move the block
<!--bof-navigation display-->
...
<!--eof-navigation display-->
to below
<!--eof-branding display-->
Last edited by gjh42; 6 Jul 2008 at 03:59 AM.
Hi,
I used the above methd and moved the nav bar but what I really want to do and cant figure out how is how to MERGE the nav bar with the categories bar? I want this order:
Home/Category1/Category2/Category3/Contact/LogIn. Anyone could help?
The webpage: http://miniatureinstruments.co.uk/ and I am using ZC 1.8
Thanks:)
No ideas?
Please, someone.
Probably the best method would be to move the <li> elements from the navMainWrapper block in tpl_header.php to appropriate places inside the <ul> in /includes/templates/your_template/templates/tpl_modules_categories_tabs.php. (Remove the entire navMain block from tpl_header.php to avoid duplication.)
Be aware that there are several elements in navMain that only appear when you are logged in or have something in the cart. You want to allow enough space in the row for those, or else make arrangements to display them somewhere else. You also need to decide what you want to do with the search_header element.
Bookmarks