I've been trying off & on for months to get additional images positioned in another way, and just found the key so thought I'd share it here.
I wanted images in a column on the left and text in a column on the right. I got the main image & text a long time ago, but additional images persisted in taking up the whole center column and pushing the text below. I thought I would have to edit tpl_columnar_display.php, but couldn't because it serves other functions too. I recently proved that it was the
<br class="clearBoth" />
at the end of it that was causing this, and figured a safe way to edit the file.
Add a test so the code is only skipped when used for the product info page:
PHP Code:
<?php
}
}
?>
<br class="clearBoth" />
<?php
PHP Code:
<?php
}
}
if ($current_page_base != "product_info") { // gjh42 20070329 ?>
<br class="clearBoth" />
<?php }
There are other <br class="clearBoth" /> instances that need to be stripped from files for all the text to snug up next to the images, but they are in single-purpose files that can be edited straight. (Although php files shouldn't need to be edited to do css positioning like this... but that's just my pet peeve.)
Bookmarks