0

In Magento 2, I changed the fotorama gallery to vertical. Now I want to limit either the maximum number of thumbnails that shows when the page loads or limit the height of the fotorama gallery.

As an example, if I have a product with 10 thumbnail images. I want the page to show 5 thumbnail images and the rest can be accessed using the arrows in the fotorama gallery.

1
  • you want to set 5 thumbnail images on fotorama gallery to vertical right? (I mean set digit as statically or dynamically) May 17, 2023 at 5:26

1 Answer 1

0

You can place the file view.xml in your theme's /etc directory with contents like this:

<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
    <media>
        <images module="Magento_Catalog">
            <image id="product_page_image_small" type="thumbnail">
                <width>93</width>
                <height>140</height>
            </image>
        </images>
    </media>
</view>
  • By changing the width and height of the images, you can control how many will be displayed in the slider.

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.