How Can I change Product Detail Page Image Section Height. I Need To Decrease That Section Height.

enter image description here

i need to fixed this left column height as right column in magento 2 can any one help me how can i change that.


Magento uses the file called view.xml which is maintained at the theme level of the application.

So for example, if you are using the default theme luma you should find the view.xml under vendor/magento/theme-frontend-luma/etc/view.xml

In this file, you would see <images/> node inside the node.

<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
        <images module="Magento_Catalog">
            <image id="bundled_product_customization_page" type="thumbnail">
            <image id="cart_cross_sell_products" type="thumbnail">
            <image id="cart_page_product_thumbnail" type="small_image">

The dimension of the images is maintained here under the <image/> node.

The id attribute value of the <image/> node is referenced in the codebase.

For example:

<image id="related_products_list" type="small_image">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.