mondobongo3 Posted April 28, 2010 Share Posted April 28, 2010 Hy ! I want to change the way pictures are displayed in Featured Products. As images for products are small by default and represent smal products, of different sizes, I did not set image width/height in Admin. Now,the pictures are aligned to top and this gives a sort of haotic appearance. I want to align them to middle, where do I have to change in code to achieve this? Thank You ! Link to comment Share on other sites More sharing options...
mondobongo3 Posted April 30, 2010 Author Share Posted April 30, 2010 Hy ! I want to change the way pictures are displayed in Featured Products. As images for products are small by default and represent smal products, of different sizes, I did not set image width/height in Admin. Now,the pictures are aligned to top and this gives a sort of haotic appearance. I want to align them to middle, where do I have to change in code to achieve this? Thank You ! solved - modiffied in includes\modules\featured.php : (about line 109) $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="middle"', // <--- Here was valign="top" 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br>' . $products_price); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.