Zen Cart Logo
Forums / Basic Configuration / Sidebox Spacing

Sidebox Spacing

Locked

Views: 1,888

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Apr 2010, 4:01 AM
#1
igendreau avatar

igendreau

New Zenner

Join Date:
Jun 2009
Posts:
49
Plugin Contributions:
0

Sidebox Spacing

I'm using the Blank Sidebox add-on, and it works fine, I just have a little extra space between the sidebox title and it's content that I can't seem to narrow down.

http://www.wwfdbracelet.com

The sidebox in question is the one on the right titled "$1 Donation". See how the space between title and content is twice as big as the sideboxes on the right? I'm a sidebox newbie and no idea where to track it down. Here is the code for my includes/languages/english/extra_definitions/MY_TEMPLATE/blank_sidebox_defines.php page:

<?php
/**
 * blank sidebox definitions - text for inclusion in a new blank sidebox
 *
 * @package templateSystem
 * @copyright 2007 Kuroi Web Design
  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
 */

define('BOX_HEADING_BLANK_SIDEBOX', '$1 Donation');
define('TEXT_BLANK_SIDEBOX', '$1 of every purchase will go to The Tea Party Express and The Tea Party Patriots.
<p>(You may also opt to donate your $1 to the Heritage Foundation) </p>
<p><strong>Follow Us:</strong><br />
<img src="http://www.wwfdbracelet.com/slmContent/facebook-logo.png" alt="Facebook" title="Facebook" name="" width="33" height="33" /> <img src="http://www.wwfdbracelet.com/slmContent/twitter-logo.png" alt="Twitter" title="Twitter" name="" width="33" height="33" /></p>
');

?>
9 Apr 2010, 4:32 AM
#2
perfect_concepts avatar

perfect_concepts

New Zenner

Join Date:
Apr 2010
Posts:
12
Plugin Contributions:
0

Re: Sidebox Spacing

In your includes/languages/english/extra_definitions/MY_TEMPLATE/blank_sidebox_defines.php page try changing <P> and </P> tags to <DIV> and </DIV> tags

9 Apr 2010, 1:04 PM
#3
igendreau avatar

igendreau

New Zenner

Join Date:
Jun 2009
Posts:
49
Plugin Contributions:
0

Re: Sidebox Spacing

That did it, thanks!

10 Apr 2010, 5:47 AM
#4
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Re: Sidebox Spacing

Hi! How about adding a space between sideboxes??

in my store you can see that Blog Latest Post ann Bestsellers seems like one.. I want them separated like all of my sideboxes.

Thanks! Heres my code for

includes/templates/template_default/sideboxes/tpl_wp_posts.php

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
  $content = "";

if($woz_install){

  //start wp output
  ob_start();
  wp_get_archives('title_li=&type=postbypost&limit=5'); // change the 'limit' parameter to whatever number of posts to show
  //get_archives('postbypost', '5', 'custom', '<li>', '</li>'); // change the '5' to whatever number of posts to show
  $out = ob_get_clean();
  //end wp output

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  $content .= '<ul>'.$out.'</ul>';' 

}
?>
10 Apr 2010, 9:02 AM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sidebox Spacing

That's because it is all one. Somehow, you have the whole right column inside #wpposts. You might check the template file for that mod.

10 Apr 2010, 2:40 PM
#6
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Re: Sidebox Spacing

Thanks! but i do not know much about this things..

I hope someone there has time to point what to change here.

This is a css file of the mod

#sidebar ul, #sidebar ul ol {
	margin: 0;
	padding: 0;
	}

#sidebar ul li {
	list-style-type: none;
	list-style-image: none;
	margin-bottom: 10px;
	}

#sidebar ul p, #sidebar ul select {
	margin: 5px 0 8px;
	}

#sidebar ul ul, #sidebar ul ol {
	margin: 5px 0 0 10px;
	}

#sidebar ul ul ul, #sidebar ul ol {
	margin: 0 0 0 10px;
	}

ol li, #sidebar ul ol li {
	list-style: decimal outside;
	}

#sidebar ul ul li, #sidebar ul ol li {
	margin: 3px 0 0;
	padding: 0;
	}
	
/* for v1.2 */
.leftboxcontent ul li, .rightboxcontent ul li , .singleboxcontent ul li{
  list-style-type: none;
  margin:0px;
  padding-left: 0px;
}

.leftboxcontent ul, .rightboxcontent ul , .singleboxcontent ul{
  margin:0px;
  padding-left:0px;
}

.leftboxcontent ul ul, .rightboxcontent ul ul, .singleboxcontent ul ul{
  list-style-type: square;
  margin:0px;
  padding-left:5px;
}

/* for v1.3 */
.leftBoxContainer ul li, .rightBoxContainer ul li , .singleBoxContainer ul li{
  list-style-type: none;
  margin:0px;
  padding-left: 0px;
}

.leftBoxContainer ul, .rightBoxContainer ul , .singleBoxContainer ul{
  margin:0px;
  padding-left:0px;
}

.leftBoxContainer ul ul, .rightBoxContainer ul ul, .singleBoxContainer ul ul{
  list-style-type: square;
  margin:0px;
  padding-left:5px;
}
10 Apr 2010, 2:56 PM
#7
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Re: Sidebox Spacing

Wanna add that if i put it below other sidebox it looks ok... but i want it on top of right sideboxes for it to be easily noticed.

Thanks