Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    46
    Plugin Contributions
    0

    Default moving the home log in

    After searchiing I figured out how to move the home and log in under my logo, but can't find any information how to move it on the same line as my shop about etc... links.

    Any advice?

    http://ratkiss.net/index.php

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: moving the home log in

    Your shop links etc are in the ezpage div - home and others are in the navmain div...this display is ordered and controlled in the tpl_header.php file...

    To accomplish what you seek you would have to move one or the other's code into the same div something like this if navmain was chosen(I did not check this for function):
    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>
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    Zen-Venom Get Bitten

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

    Default Re: moving the home log in

    They are two separate divs.
    You could move the code from #navMain into the #navEZPages div or vice versa, or you could remove the <br class="clearBoth" /> from after the search code in /includes/templates/your_template/common/tpl_header.php. That forces what follows to be on a new line.

    You would then need to add clear: both to #contentMainWrapper so it behaves correctly. Find in or add to your stylesheet:

    #navMainWrapper .clearBoth {display: none;}

    #contentMainWrapper {clear: both;}

  4. #4
    Join Date
    Nov 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: moving the home log in

    Thank you both for the speedy reply, I followed what Kobra posted and it looks right!

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: moving the home log in

    You might want to add this to the entry in your stylesheet and see if you prefer this:
    Code:
    #navEZPagesTop {
            float: right;
    	font-size: 0.95em;
    	font-weight: bold;
    	margin: 0em;
    	padding: 0.5em 0 0.5em 1.5em;
    	}
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Nov 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: moving the home log in

    Thanks again, it looks even better like that.


  7. #7
    Join Date
    Nov 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: moving the home log in

    I just added a backgroud image to that area and the same image is showing up just above the site info copyright area, Do you know why that happened?

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

    Default Re: moving the home log in

    You added the background to a group declaration, where several elements are controlled. You need to separate out #navMainWrapper into its own line, and style that with the background.

  9. #9
    Join Date
    Nov 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: moving the home log in

    Ah ha!
    Thank you Glenn, I believe I fixed it now.

 

 

Similar Threads

  1. Moving the Log In / Or Register link
    By redsy in forum General Questions
    Replies: 4
    Last Post: 6 Dec 2010, 11:24 PM
  2. Moving text underneath the catogories on the home page
    By olaand in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Jun 2008, 07:42 AM
  3. Moving 'Home | Log In', search bar, etc under header image
    By v.kirk in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Jul 2006, 11:52 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