antalya gergi tavan antalya duvar kağıdı

Reply To: How to remove the white stripe above and below product image on the front page?

Home Support Free Theme: Access Shop How to remove the white stripe above and below product image on the front page? Reply To: How to remove the white stripe above and below product image on the front page?

#4243

Allysin
Participant

Here is a solution to this. It appears that Magento just adds a white border on top and bottom of your products on the front page which is a problem if you are using a different color background (other than white). So the easiest way to fix this is to go to:

app/design/frontend/your_theme/template/catalog/product/

Open the list.phtml file to edit

Here you can change the background color of the image (product) to your background color.

Change in 2 places:

1. Change this:

getProductUrl() ?>” title=”<?php echo $this->stripTags($this->getImageLabel($_product, ‘small_image’), null, true) ?>” class=”product-image”>helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(135); ?>” width=”135″ height=”135″ alt=”<?php echo $this->stripTags($this->getImageLabel($_product, ‘small_image’), null, true) ?>” />

TO THIS:

getProductUrl() ?>” title=”<?php echo $this->stripTags($this->getImageLabel($_product, ‘small_image’), null, true) ?>” class=”product-image”>helper(‘catalog/image’)->init($_product, ‘small_image’)->backgroundColor(array(125,125,152))->resize(135); ?>” width=”135″ height=”135″ alt=”<?php echo $this->stripTags($this->getImageLabel($_product, ‘small_image’), null, true) ?>” />

you are really just adding this: add backgroundColor(array(125,125,152))->

2. In the same file CHANGE THIS:

helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(160,220); ?>” width=”160″ height=”220″ alt=”<?php echo $this->stripTags($this->getImageLabel($_product, ‘small_image’), null, true) ?>” />

to this:

helper(‘catalog/image’)->init($_product, ‘small_image’)->backgroundColor(array(125,125,152))->resize(160,220); ?>” width=”160″ height=”220″ alt=”<?php echo $this->stripTags($this->getImageLabel($_product, ‘small_image’), null, true) ?>” />

you are just adding this: add backgroundColor(array(125,125,152))->

I hope this helps! 🙂

anal porno watch porn anal