Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moving Home Login below Logo

Moving Home Login below Logo

Locked

Views: 2,801

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
25 Jul 2007, 12:35 PM
#1
gogolf avatar

gogolf

New Zenner

Join Date:
Mar 2006
Posts:
57
Plugin Contributions:
0

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?

25 Jul 2007, 4:07 PM
#2
brandtim avatar

brandtim

Zen Follower

Join Date:
Apr 2006
Posts:
250
Plugin Contributions:
0

Re: Moving Home Login below Logo

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

move this:

<!--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:

<!--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

26 Jul 2007, 2:13 AM
#3
wgvania avatar

wgvania

New Zenner

Join Date:
Apr 2007
Posts:
35
Plugin Contributions:
0

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.

26 Jul 2007, 5:11 PM
#4
brandtim avatar

brandtim

Zen Follower

Join Date:
Apr 2006
Posts:
250
Plugin Contributions:
0

Re: Moving Home Login below Logo

wgvania,

That's easy enough.

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

move this:

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

before this:

<div id="navMain">

and add this to the end of stylesheet.css:

#navMain {float: right;}

BrandTim

26 Jul 2007, 8:36 PM
#5
wgvania avatar

wgvania

New Zenner

Join Date:
Apr 2007
Posts:
35
Plugin Contributions:
0

Re: Moving Home Login below Logo

Thanks, Brandtim! It worked.

26 May 2008, 10:46 PM
#6
harveee avatar

harveee

New Zenner

Join Date:
May 2008
Posts:
12
Plugin Contributions:
0

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

26 May 2008, 11:29 PM
#7
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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.

27 May 2008, 4:25 PM
#8
harveee avatar

harveee

New Zenner

Join Date:
May 2008
Posts:
12
Plugin Contributions:
0

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

27 May 2008, 4:37 PM
#9
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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.

27 May 2008, 10:05 PM
#10
harveee avatar

harveee

New Zenner

Join Date:
May 2008
Posts:
12
Plugin Contributions:
0

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)