Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2006
    Posts
    57
    Plugin Contributions
    0

    Default Moving Home Login below Logo

    Newbie here.

    I want to move the Home Log In line below the header logo.
    What files do I need to modify?

  2. #2
    Join Date
    Apr 2006
    Posts
    265
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    In includes/templates/YOUR_TEMPLATE/common/tpl_header.php,

    move this:
    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 if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    below this:
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  }
    ?>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    BrandTim

  3. #3
    Join Date
    Apr 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Hi, this thread is a great help. I'm also trying to figure out how to move home and login, except I want to move home and login to the upper right, next to search. How would I do this?

    I apologize in advance if this is a dumb question.

  4. #4
    Join Date
    Apr 2006
    Posts
    265
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    wgvania,

    That's easy enough.

    In includes/templates/YOUR_TEMPLATE/common/tpl_header.php,

    move this:

    Code:
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    before this:

    Code:
    <div id="navMain">
    and add this to the end of stylesheet.css:

    Code:
    #navMain {float: right;}
    BrandTim

  5. #5
    Join Date
    Apr 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Thanks, Brandtim! It worked.

  6. #6
    Join Date
    May 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Hi all, another newbie question here.

    I have followed the instructions above, except for the css bit. When i got to my site, i have a gap below the logo and where the home / login is. can anyone suggest what i am doing wrong please. i am using zen 1.3.8a.

    many thanks

    Russell

  7. #7
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Can you post the URL?
    It'll be easier to see the gap and work out what's missing.

  8. #8
    Join Date
    May 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Hi BigBadBoy.

    At the moment I am workingon a local server. Just trying to get used to feel of the shop and how to customise it.

    I can try and get it up live on wednesday (U.K.) for you to have a look.

    Many thanks

    Russell

  9. #9
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Without looking at the code it's fairly impossible to know what's causing it but as soon as you have something up let me know.

  10. #10
    Join Date
    May 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Moving Home Login below Logo

    Hi BigBadBoy.

    Many thanks for your help.

    I have made an error and have accidentaly posted the same question in two threads. So I don't cause any conflicts with forum rules, I will close my query here and continue in the other thread.

    My sincere apologies for this and my gratitude for your assistance.

    I will continue, hopefully to find my answer in: Zen Cart Support > Customizing the Look of Your Shop > Page Layout Changes > Moving Home / Login to main page header?

    Regards Russell (Harveee)

 

 

Similar Threads

  1. Help with header (moving links below logo)
    By Keezee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jun 2010, 09:25 PM
  2. Empty space - below logo and below Home & Log in links - how to delete?
    By dabone in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jan 2009, 01:18 AM
  3. Help moving main frames down below logo.
    By ariasparkle in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2008, 08:45 PM
  4. Template - Moving Header Buttons Down Below Logo
    By Mike123acc in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jan 2008, 02:10 PM

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