Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Sidebox Height Adjustments?

    Hi everyone, how do I configure a sidebox so the height adjusts according to the content?

    Similar to the way the shopping cart sidebox works. When there's nothing in your cart, it's small, the height adjust when you add items.

    I have added the Ty Tracker for order tracking, but it stays the same universal size. I've tried to adjust using css but I'm still not getting it right.

    Any suggestions?

    Thank you!

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

    Default Re: Sidebox Height Adjustments?

    All sideboxes by default adjust to their contents' height. If you have one that does not, some styling has been added to make it fixed. We can tell what to do if we can see your site live.

  3. #3
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Sidebox Height Adjustments?

    Hi there,

    Here's the link:

    www.funhn.com/shop

    It's the box on the right "Previous Orders"

    Also while you're there could you tell me why the top/bottom nav links don't have the same spacing...I think they're set the same.

    Another thing is that when i turn off ALL the links on the footer, "Home" is still listed. Not sure if I somehow manually added this on there at some point. Would you know how to remove it? Thank you!!

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

    Default Re: Sidebox Height Adjustments?

    stylesheet.css (line 682)

    .orderHistList {
    list-style-type:none;
    margin:1em;
    padding:0.2em 0;
    }

    The red item is the biggest space hog; there are other paddings on elements enclosing this as well.

    stylesheet.css (line 474)

    #trackordersContent {
    padding:0.4em;
    }

    In the footer you appear to have the default Home link as well as an ez-page Home link with a malformed URL (.../index.php?main_page&zenid=...)
    The red text does not need to be in there. As you have made an ez-page Home link, you appear to want one, so why not eliminate the ez-page one and leave the default one?
    To remove the default Home link, you would need to edit tpl_footer.php.

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

    Default Re: Sidebox Height Adjustments?

    stylesheet.css (line 319)

    #navEZPagesTop a {
    font-weight:bold;
    padding:0 0.5em;
    }

    stylesheet.css (line 357)

    #navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {
    color:#000000;
    margin:0;
    padding:0 1em;
    text-decoration:none;
    white-space:nowrap;
    }

  6. #6
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Sidebox Height Adjustments?

    THANK YOU!!!

    As far as my EZ Header/Footer goes...I don't know where to start. I've done a search in the tpl_footer file for my malfomed link but didn't come up with anything.

    I would like to use the link in EZ Pages...I just don't know how I got that Home link there in the first place.

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

    Default Re: Sidebox Height Adjustments?

    The malformed link would be an ez-page internal link. If you want a home link there, the best thing would be to delete the ez-page link and keep the default one - they both do the same thing, but the default one does it neater.

  8. #8
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Sidebox Height Adjustments?

    If you look at the site now I have disabled ALL links in the footer. That home link still comes up. I must've somehow placed it manually....

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

    Default Re: Sidebox Height Adjustments?

    The first home link is built into the stock Zen Cart footer, in tpl_footer.php.

  10. #10
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Sidebox Height Adjustments?

    ? It's not there. I've searched the file

    [SCR]<?php
    /**
    * Common Template - tpl_footer.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_footer = true;<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_footer.php 15511 2010-02-18 07:19:44Z drbyte $
    */
    require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
    ?>

    <?php
    if (!isset($flag_disable_footer) || !$flag_disable_footer) {
    ?>

    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php } ?>
    </ul>
    </div>
    </div>
    <!--eof-navigation display -->

    <!--bof-ip address display -->
    <?php
    if (SHOW_FOOTER_IP == '1') {
    ?>
    <div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div>
    <?php
    }
    ?>
    <!--eof-ip address display -->

    <!--bof-banner #5 display -->
    <?php
    if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    <!--eof-banner #5 display -->

    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
    <!--eof- site copyright display -->



    <?php
    } // flag_disable_footer
    ?>
    [/SCR]

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Sidebox Heading Height
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 27
    Last Post: 27 Aug 2011, 01:21 AM
  2. Sidebox Height Problems
    By flyingbrick in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Jan 2008, 06:00 AM
  3. Sidebox height
    By EyefulTower in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Aug 2007, 01:16 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