I tried adding <var name="height">530</var> inside <var name="gallery"></var> as this is the parameter to add height in fotorama as per the documentation but my declaration is not applying. I tried doing s:up and c:f but nothing works.

1 Answer 1


Found the answer.

The height option (for fotorama gallery), even though is added in the documentation, is not being pulled because the variable itself is not being used in GalleryOptions.php. Magento Automatically considers the 'product_page_image_medium' for main image height and 'product_page_image_small' for thumbnail. You can add and update how it is set in GalleryOptions.php in Magento_Catalog.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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