Post by JNeuhoff » Fri Jun 12, 2009 6:59 am

There is a bug causing a mis-alignment of images in the category page, see attached image.

Proposed fix for the /catalog/view/theme/premierdelivered/template/product/category.tpl file, near the top:

Code: Select all

<div class="top">
  <h1><?php echo $heading_title; ?></h1>
</div>
<div class="middle">
  <?php if ($categories) { ?>
  <?php foreach ($categories as $category) { ?>
  <div style="float: left; text-align: center; width: 25%; margin:0 0 5px 0; height:180px;"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" title="<?php echo $category['name']; ?>" alt="<?php echo $category['name']; ?>" style="margin-bottom: 3px;" /></a><br />
    <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
  </div>
  <?php } ?>
  <div style="clear:both;">&nbsp;</div>
  <?php } ?>
  .........

Attachments

category-tpl-bug.png

category-tpl-bug.png (71.2 KiB) Viewed 806 times


Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 5 guests