If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How can I get rid of the spaces between the banners in the side box?

How can I get rid of the spaces between the banners in the side box?

Locked

Started by cgardner on 4 Oct 2007, 5:50 AM · Views: 2,053

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
4 Oct 2007, 5:50 AM
#1
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Post #1 by cgardner

I want to get rid of the spaces between the multiple static banners in a side colomn. I want them to sit flush against each other. Any help with this?
Thanks!

4 Oct 2007, 6:16 AM
#2
kobra avatar

kobra

Black Belt

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

Post #2 by kobra

Any url to this?

Zen-Venom Get Bitten

4 Oct 2007, 6:22 PM
#3
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Post #3 by cgardner

http://www.diginirvana.com/zen_cart/store

I'm using the banners as my navigation bar. This seemed like an easy way to deal with my left navigation issues.
Any advice you have for me is great!

4 Oct 2007, 7:08 PM
#4
kobra avatar

kobra

Black Belt

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

Post #4 by kobra

In the file includes/templates/template_default/sideboxes/tpl_banner_box_all.php - copy this file to your template in a folder named the same then open it and edit this part of the code. You can try removing both the <br /> but this may not work but one can be removed for sure

// add spacing between banners
    if ($banner_cnt < $banners_all->RecordCount()) {
      $content .= '<br /><br />';
    }

Zen-Venom Get Bitten

9 Oct 2007, 1:01 AM
#5
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Post #5 by cgardner

That was exactly the code I was looking for! Thanks so much!

There's only one problem...I thought I was using the override system correctly, but for some reason any documents from includes/templates/template_default that I copy into includes/templates/my_template does not work. The original files that I copied from classic work (css, images), but nothing else. I have changed all the permissions to 777, still no go.

Anything else I could try? I placed the new file with the new code in includes/templates/my_template/sideboxes/tpl_banner_box_all.php.

Thank you SO much for all your help!
Carina

9 Oct 2007, 2:05 AM
#6
kobra avatar

kobra

Black Belt

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

Post #6 by kobra

but for some reason any documents from includes/templates/template_default that I copy into includes/templates/my_template does not work.
If copied from templates_default/common are you placing your edited file in /magic/common?

Same for any others that are in specific folders - if you do not have the folder then create it

Zen-Venom Get Bitten