Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moving 'Home | Log In', search bar, etc under header image

Moving 'Home | Log In', search bar, etc under header image

Locked

Views: 2,954

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
12 Jul 2006, 11:19 PM
#1
v_kirk avatar

v_kirk

Zen Follower

Join Date:
Jun 2006
Posts:
110
Plugin Contributions:
0

Moving 'Home | Log In', search bar, etc under header image

title explains it all, how would i do that?

13 Jul 2006, 7:07 AM
#3
gerard avatar

gerard

Zen Follower

Join Date:
Oct 2005
Location:
Qld Australia
Posts:
124
Plugin Contributions:
1

Re: Moving 'Home | Log In', search bar, etc under header image

Or check includes/templates/YOUR TEMPLATE/common/tpl_header.php, open it up in your favorite editor (dreamweaver etc )and move (by memory so please backup and test first :blush: )

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="headerNavigation"> <tr> <td align="left" valign="top" width="35%" class="headerNavigation"> <a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a> |  <?php if (isset($_SESSION['customer_id'])) { ?> <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> |  <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> <?php } else { if (STORE_STATUS == '0') { ?> <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> <?php } } ?> </td> <td align="center" width="30%" class="headerNavigation"><?php require(DIR_WS_MODULES . 'sideboxes/' . 'search_header.php'); ?></td> <td align="right" valign="top" width="35%" class="headerNavigation"> <?php if ($_SESSION['cart']->count_contents() != 0) { ?> <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>»</a> <?php }?> </td> </tr> </table>

to the bottom of the file

Gerard :smile:

13 Jul 2006, 7:20 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Moving 'Home | Log In', search bar, etc under header image

open it up in your favorite editor (dreamweaver etc )and move (by memory so please backup and test first
:no:
Code above is for ZenCart 1.2*.. Changed in zencart 1.3*

13 Jul 2006, 7:34 AM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Moving 'Home | Log In', search bar, etc under header image

But the principle is still applicable, and even easier to do now.

In tpl_header.php, find the block of code starting with <!--bof navigation display--> and ending with <!--eof navigation display-->, and move the whole block to just after <!--eof branding display-->.

13 Jul 2006, 8:05 AM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Moving 'Home | Log In', search bar, etc under header image

In tpl_header.php, find the block of code starting with <!--bof navigation display--> and ending with <!--eof navigation display-->, and move the whole block to just after <!--eof branding display-->.
:thumbsup:

13 Jul 2006, 9:40 AM
#7
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Moving 'Home | Log In', search bar, etc under header image

I did this, but now it's blocking the top of the images below it. Tried adding a line break under it but that just messed up the whole page. Have also tried (both through the css and tpl_header.php) to insert a background image for the main nav - nothing seems to work.

Any ideas.....

Thanks
Judy

http://www.judysgems.com/ZenCart/

13 Jul 2006, 10:52 PM
#8
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Moving 'Home | Log In', search bar, etc under header image

Disregard my previous post - starting from scratch :down: