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!
Started by cgardner on 4 Oct 2007, 5:50 AM · Views: 2,053
New Zenner
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!
Black Belt
Any url to this?
Zen-Venom Get Bitten
New Zenner
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!
Black Belt
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
New Zenner
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
Black Belt
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
Tell staff why this post should be reviewed.