Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Sidebox Height Adjustments?

Sidebox Height Adjustments?

Locked

Views: 1,174

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
20 Oct 2010, 8:46 PM
#1
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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!

20 Oct 2010, 10:42 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

20 Oct 2010, 11:34 PM
#3
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Sidebox Height Adjustments?

Hi there,

Here's the link:

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

20 Oct 2010, 11:46 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

20 Oct 2010, 11:50 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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;
}

20 Oct 2010, 11:56 PM
#6
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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 :wacko: 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. :blink:

21 Oct 2010, 12:09 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

21 Oct 2010, 12:14 AM
#8
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

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

21 Oct 2010, 1:04 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Sidebox Height Adjustments?

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

21 Oct 2010, 1:10 AM
#10
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Sidebox Height Adjustments?

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

<?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 [url]http://www.zen-cart.com/license/2_0.txt[/url] 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
?>
21 Oct 2010, 3:10 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Sidebox Height Adjustments?

<div id="navSupp"> <ul> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

The red text is the home link code.

21 Oct 2010, 3:18 AM
#12
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Sidebox Height Adjustments?

Thank you! I would've NEVER figured that one out. :smile: