How to Set Image Gallery Fotorama Thumbnail as Vertical View in Magento 2
The online store design is important for user experience and driving sales. It is quite essential to make sure that visitors find the product details on the web page easily.
Keeping this point in mind, I have come up with a solution to set image gallery Fotoroma thumbnail as vertical view in Magento 2.
By default, the image gallery Fotoroma thumbnail is set in horizontal view in Magento 2 as shown here:
However, some images may look better when shown in the vertical view. Or else, the vertical view may be more suitable based on your Magento 2 store theme.
Hence, you may want to change the image gallery Fotoroma thumbnail from horizontal view to vertical view in Magento 2 which can be done using the below method:
Method to Set Image Gallery Fotorama Thumbnail as Vertical View in Magento 2:
In the view.xml at app\design\frontend\Themes\Yourtheme\etc
Find the below line
1 |
<var name="navdir">horizontal</var> |
Replace with below code:
1 |
<var name="navdir">vertical</var> |
That’s it.
Once you implement the above code, the image gallery will be displayed as a vertical view like this:
Have any doubts about changing the position of the image gallery in Magento 2? If yes, use the Comments section below for me to help you out.
Also, do share the post with Magento 2 store owners via social media to help them enhance the layout of the product page in their online store.
Thank you.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
6 Comments
Do you know how to adjust the number of thumbnails / thumbs count for fotorama gallery slider in Magento?
Hello Mike,
No such thing is possible with the default code of Magento. So, you’ll need to customize the code.
Thank You
I like what I see so I just follow you.
Look forward to going through your website again.
Hello Ebrevinil,
Thank you so much for the appreciation and following us!
Thanks.
how we can show addtinal images as a thumbail
no slider no navigation like that link https://www.casando.de/domizil-glasschiebetuer-opal-8-mm-esg-floatglas-exclusiv-komplettset-10030021019-produkt/
Hello Moazzam,
Please add the below code in the view.xml file at app\design\frontend\Themes\Yourtheme\etc\
Thank You.