Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Aligning the blank sidebox

Aligning the blank sidebox

Locked

Views: 767

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Dec 2008, 11:28 AM
#1
sjohnstone avatar

sjohnstone

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Aligning the blank sidebox

Hi everyone

I have put in a blank sidebox, but the content doesn't link up with the other sideboxes.

See here at the button 'Community'.
http://sew-world.com.au/

The code for the blank_sidebox_defines.php is this below.

Thanks in anticipation,
Sandy


<?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', ''); define('TEXT_BLANK_SIDEBOX', ' <img src = "http://www.sewworld.com.au/sewworld2/community.jpg"> '); ?>
2 Dec 2008, 3:57 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Aligning the blank sidebox

Try making it the heading....
Place your src between the single quotes

define('BOX_HEADING_BLANK_SIDEBOX', '');
define('BOX_HEADING_BLANK_SIDEBOX', 'HERE');
2 Dec 2008, 7:23 PM
#3
sjohnstone avatar

sjohnstone

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: Aligning the blank sidebox

Thanks so much for the suggestion Kobra. That didn't work.

I managed to work it out though. Here's my solution for anyone else with this problem.

I editied the tpl_blank_sidebox.php file and took out the <p> tags like this:

$content .= '</p>' . TEXT_BLANK_SIDEBOX . '</p>';
$content .= '</p></p>';

I'm sure it's not the proper way to do it, but removing the <p> tags completely just upset it.

3 Dec 2008, 4:48 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Aligning the blank sidebox

Did you search for the file that has "BOX_HEADING_BLANK_SIDEBOX"
in it?