Zen Cart Logo
Forums / Basic Configuration / Sidebox Spacing 2

Sidebox Spacing 2

Locked

Views: 1,121

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
23 Apr 2010, 3:52 PM
#1
igendreau avatar

igendreau

New Zenner

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

Sidebox Spacing 2

I asked a similar question before, but the answer that worked then doesn't apply now. I just need to lessen the space between my sidebox header and the content. My site is:

http://www.wwfdbracelet.com

See the spacing in the sidebox to the right? That was done by removing the <p></p> tags and replacing them with DIV tags.

The box on the left is the one I want to fix. I want to get rid of that big space on the left between the title and the counter. Here is the content of my counter_sidebox_defines.php file:

<?php
/**
 * counter 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: counter_sidebox.php 2007-05-26 kuroi $
 */

define('BOX_HEADING_COUNTER_SIDEBOX', 'WWFD Hits:');
define('TEXT_COUNTER_SIDEBOX', '<div><table width="133" border="0" cellspacing="0" cellpadding="3"><tr><td align="center"><a href="http://www.website-hit-counters.com/" target="_blank"><img src="http://www.website-hit-counters.com/cgi-bin/image.pl?URL=352587-5059" alt="website-hit-counters.com" title="website-hit-counters.com" border="0" ></a></td></tr><tr><td align="center"><font style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #330006; text-decoration: none;">Provided by <br><a href="http://www.website-hit-counters.com/" target="_blank" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #555556; text-decoration: none;" title="website-hit-counters.com">website-hit-counters.com</a><br>hit counter site.</font></td></tr></table></div>');
?>
23 Apr 2010, 3:58 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Sidebox Spacing 2

Your source says you still have <p> tags in that box's content.

Also, the navMain is overlapped a little in Firefox. You might need a little more height on navMain.

23 Apr 2010, 4:04 PM
#3
igendreau avatar

igendreau

New Zenner

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

Re: Sidebox Spacing 2

Hmmm, not sure how to fix that. What I posted above is exactly what's in my sidebox defines page and there are no <p> tags in that content

23 Apr 2010, 4:12 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Sidebox Spacing 2

You need to look in the sidebox's module and tpl files as well. Probably tpl_counter_sidebox.php has the <p> tags.

23 Apr 2010, 4:12 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: Sidebox Spacing 2

Check tpl_counter_sidebox.php. I'm not sure if the <p> tags there will affect anything, but they're coming from somewhere.

23 Apr 2010, 4:23 PM
#6
igendreau avatar

igendreau

New Zenner

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

Re: Sidebox Spacing 2

Great find. Changed them in the tpl_ file from <p> to <div> and we're good. Thanks a ton for the help!