Zen Cart Logo
Forums / General Questions / additional images block extra br tag

additional images block extra br tag

Locked

Views: 859

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Jul 2007, 5:47 AM
#1
xaria avatar

xaria

New Zenner

Join Date:
May 2007
Posts:
92
Plugin Contributions:
0

additional images block extra br tag

   <div class="additionalImages centeredContent back" style="width:100%;">
      <script language="javascript" type="text/javascript"><!--
document.write('<a href="images/large/EAM4300_1_LRG.PNG" rel="lightbox[gallery]" title="FULLY AUTOMATIC ESPRESSO COFFEE MAKERS"><img src="images/EAM4300_1.PNG" alt="FULLY AUTOMATIC ESPRESSO COFFEE MAKERS" title=" FULLY AUTOMATIC ESPRESSO COFFEE MAKERS " width="200" height="78" /></a>');
//--></script>
      <noscript><a href="http://localhost/osx/index.php?main_page=popup_image_additional&pID=8&pic=0&products_image_large_additional=images/large/EAM4300_1_LRG.PNG" target="_blank"><img src="images/EAM4300_1.PNG" alt="FULLY AUTOMATIC ESPRESSO COFFEE MAKERS" title=" FULLY AUTOMATIC ESPRESSO COFFEE MAKERS " width="200" height="78" /></a></noscript></div>
 <br class="clearBoth" />
 
</div>
```Above is the source generated for my product_info page. I am unable to figure out where this <br class="clearboth"/> is generated from. I checked and re-checked my additional images block in the tpl_product_info_display. It is not there.. I have installed zenlightbox. 
The reason I am concerned with the Br tag is.. It messes up the display in IE.
Before I installed the zenlightbox... There were no issues... but now the product_info_display page displays unappropriately in IE its all fine in Firefox.

I know a URL will better explain my situation/problem... Alas!!! i don't have a URL yet.

Any help will be appreciated.

Thanks
17 Jul 2007, 8:06 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: additional images block extra br tag

tpl_product_info_display.php calls tpl_modules_additional_images, which in turn calls tpl_columnar_display.php. This is what inserts the <br class="clearBoth" />.

Unfortunately, tpl_columnar_display is also used elsewhere, so you can't just delete that bit. You need to use a conditional statement to skip it for the product info page only. In /includes/templates/your_template/common/tpl_columnar_display.php, find this at the end of the file ```php

<?php } } ?> <br class="clearBoth" /> <?php } } ?> ``` and change to this```php <?php } } if ($current_page_base != "product_info") { // for additional images ?> <br class="clearBoth" /> <?php } } } ?> ```
18 Jul 2007, 2:32 AM
#3
xaria avatar

xaria

New Zenner

Join Date:
May 2007
Posts:
92
Plugin Contributions:
0

Re: additional images block extra br tag

Thanks.. it worked like a charm.
:smile: