Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2006
    Posts
    110
    Plugin Contributions
    0

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

    title explains it all, how would i do that?

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

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

    Could try Alternative Header mod at
    http://www.zen-cart.com/index.php?ma...roducts_id=132

  3. #3
    Join Date
    Oct 2005
    Location
    Qld Australia
    Posts
    156
    Plugin Contributions
    1

    Default 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 )
    <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>&nbsp;|&nbsp;
    <?php if (isset($_SESSION['customer_id'])) { ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>&nbsp;|&nbsp;
    <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>&nbsp;|&nbsp;<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>&raquo;</a>
    <?php }?>
    </td>
    </tr>
    </table>
    to the bottom of the file


    Gerard

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default 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

    Code above is for ZenCart 1.2*.. Changed in zencart 1.3*

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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-->.

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default 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-->.

  7. #7
    Join Date
    Jun 2006
    Posts
    41
    Plugin Contributions
    0

    Default 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/

  8. #8
    Join Date
    Jun 2006
    Posts
    41
    Plugin Contributions
    0

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

    Disregard my previous post - starting from scratch

 

 

Similar Threads

  1. v151 Move Home/Login/Search Bar/ below header image...
    By Kris63 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Dec 2012, 05:11 AM
  2. Moving Home/Login/Search div UNDER the Header
    By blakemiller in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 7 Oct 2009, 06:47 PM
  3. Moving Search bar into header image and manufacturers dropdown
    By rickiesdiscount in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Jan 2009, 08:21 PM
  4. Move search bar under header
    By mushroomlanding in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Aug 2008, 12:07 PM
  5. How do I move Home and Log In etc. to right side of header?
    By anduril3019 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jan 2007, 12:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR