cancel
Showing results for 
Search instead for 
Did you mean: 

too big new products home page

too big new products home page

hellooo

 

does anyone know how I can change the size of the new products on the home page? for pc only mobile is fine

 

the icons are too big http://www.alteregofitness.co.uk/

1 REPLY 1

Re: too big new products home page

Go To Your New Product .phtml File and replace your code with the below given code after <li > tag.

If your Magento version is 1.9.0 and Higher, then use the below code:

 

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
<?php $_imgSizeW = 370; ?>
<?php $_imgSizeH = 210; ?>
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSizeW,$_imgSizeH); ?>"
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
</a>


If your Magento version is below 1.9.0, then use the below code:

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(370,210) ?>" width="370" height="210" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>


If you want to change image size as your image box then replace width & height respectively into resize(370,210).

 

Thanks!

Query solved? Accept as Solution.Thanks
Eric Baily