Magento square thumbmail

0

I'm creating a virtual store in magento using tema porto , but I have the following problem: Images are getting rectangular and disproportionate, here's a sample photo:

How do I leave a default size for photos? something like 200x200 type

    
asked by anonymous 06.09.2018 / 19:50

1 answer

0

The change you made in $ ratio_width and $ ratio_height affect the generation of the code in PHP ... this modifies the quality of the rendered image ... but does not affect the size of your display on the screen / browser. >

What controls the size of the displayed image, eh the HTML / CSS.

Depending on how the theme was created ... you can modify the width and height of these images in a style.css of the theme itself (must be inside the theme package port).

Search for the class of the image (if any) .. you should find the name of the class in the html generated in the browser (right click on the image) .. should be something like " class=product_image ". / p>

or .product .img within the theme's style.css.

In some cases (because it all depends on how the theme was written) ... width and height will be inside the html img tag, eg " <img src='...' width='...'> " in this case you need to modify directly in the HTML code.

success there.

    
25.10.2018 / 18:23