Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    672
    Plugin Contributions
    0

    Default Changing Tab Layout

    I am having a slight issue with my tab spacing. All my tabs space appropriately except for my home and logout tab. You can see the image here:



    Here is the tpl_header.php setting area that is in my customer template that displays these tabs:

    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_home.png"></a>'?>
    <?php if ($_SESSION['customer_id']) { ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_logoff.png"></a>'?>
        <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_myaccount.png"></a>'?>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_login.png"></a>'?>
    <?php } } ?>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_cart.png"></a>'?>
      <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_checkout.png"></a>'?>
    <?php }?>
    </div>
    <div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    I can obviously see that the problem lies in between the home and logoff button which is the middle of this code:

    Code:
    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_home.png"></a>'?>
    <?php if ($_SESSION['customer_id']) { ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/bbutton_logoff.png"></a>'?>
    My problem is that I don't know .php (if this is a php issue). All of those tabs showing are the same exact size and specifications with different text (because I manually created each one right after one another). Any ideas as to how I can get a space in betwen that area? Normally I would assume it's a css issue but wouldn't that go for all the tabs listed? So I am guessing it is a difference in the php code, that is different between those two buttons vs the other buttons.

    Any ideas would be much appreciated.

  2. #2
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    672
    Plugin Contributions
    0

    Default Re: Changing Tab Layout

    Also when the log in tab is showing there is a space. So this only happens with the logoff code and tab.

  3. #3
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    672
    Plugin Contributions
    0

    Default Re: Changing Tab Layout

    Anyone?

 

 

Similar Threads

  1. v151 Category Tab Layout Question
    By sle39lvr in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Oct 2013, 01:37 AM
  2. Changing tab name
    By Deirdre in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Oct 2010, 05:57 AM
  3. Changing Tab Names
    By Advantage Online in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Feb 2010, 07:06 PM
  4. Changing tab labels
    By becks3636 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Feb 2010, 05:37 PM
  5. Changing the tab
    By creativegiftsnmore in forum General Questions
    Replies: 1
    Last Post: 13 Sep 2009, 10:15 PM

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