Zen Cart Logo
Forums / Addon Sideboxes / Remove space from Blank_sidebox

Remove space from Blank_sidebox

Views: 1,633

Results 1 to 7 of 7
21 Jan 2012, 5:20 PM
#1
jghogue avatar

jghogue

New Zenner

Join Date:
Oct 2011
Posts:
35
Plugin Contributions:
0

Remove space from Blank_sidebox

Hi All,

I am using 1.3.9h and have successfully installed Blank_sidebox. I have two images displayed, side by side.

I have significant white space on top and bottem. Can I get rid of this in my CSS stylesheet?

Thanks

21 Jan 2012, 6:39 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Remove space from Blank_sidebox

No. You'll have to edit tpl_blank_sidebox.php and remove the <p> and </p> tags (but leave the single quotes):

$content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
$content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';

so:

$content .= '' . TEXT_BLANK_SIDEBOX . '';
$content .= 'You can include text, links, images, HTML markup and even PHP code';

21 Jan 2012, 7:56 PM
#3
jghogue avatar

jghogue

New Zenner

Join Date:
Oct 2011
Posts:
35
Plugin Contributions:
0

Re: Remove space from Blank_sidebox

Worked like a charm. Thank you so much. You guys rock.

27 Sep 2012, 12:08 AM
#4
allanjhn avatar

allanjhn

New Zenner

Join Date:
Sep 2012
Posts:
12
Plugin Contributions:
0

Re: Remove space from Blank_sidebox

jghogue:

Worked like a charm. Thank you so much. You guys rock.

hi i am trying to add my seal to the box but im having a hard time with the php

here is what i would like added in between ' '

<a href="#" onclick="window.open('https://www.sitelock.com/verify.php?site=teachntoysonline.com','SiteLock','width=600,height=600,left=160,top=170');" ><img alt="website security" title="SiteLock" src="//shield.sitelock.com/shield/teachntoysonline.com"/></a>

it keeps looking like its being commented out after the https part... can u do the code for me and ill just copy it here is where i want it

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

$content .= 'THIS IS WHERE I WANT THAT CODE';

$content .= '</div>';

27 Sep 2012, 2:21 AM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Remove space from Blank_sidebox

Your javascript already has both single and double quotes, so putting it inside a (single-quoted) PHP string means you will have to escape the script quotes with a \ before each '.

27 Sep 2012, 2:24 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Remove space from Blank_sidebox

$content .= '<a href="#" onclick="window.open(\'https://www.sitelock.com/verify.php?site=teachntoysonline.com\',\'SiteLock\',\'width=600,height=600,left=160, top=170\');" ><img alt="website security" title="SiteLock" src="//shield.sitelock.com/shield/teachntoysonline.com"/></a> ';
28 Sep 2012, 5:30 PM
#7
allanjhn avatar

allanjhn

New Zenner

Join Date:
Sep 2012
Posts:
12
Plugin Contributions:
0

Re: Remove space from Blank_sidebox

thanks a million!