- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017
12:33 PM
01-05-2017
12:33 PM
Re: How to edit Fotorama Gallery ?
Overwrite `vendor\magento\theme-frontend-luma\etc\view.xml`
I have the following, for example: `app\design\frontend\[CustomTheme]\default\etc\view.xml`
<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_large" type="image"/>
<image id="product_page_image_medium" type="image">
<width>700</width>
<height>420</height>
</image>
<image id="product_page_main_image" type="image">
<width>700</width>
<height>420</height>
</image>
<image id="product_page_main_image_default" type="image">
<width>700</width>
<height>420</height>
</image>
</images>
</media>
</view>
This will cause the `fotorama__stage` to be smaller - it adjusts based on the image size.
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2017
02:57 PM
01-08-2017
02:57 PM
Re: How to edit Fotorama Gallery ?
Hi @aleathorn,
Are you trying to override a layout XML definition?
Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2017
09:02 PM
01-08-2017
09:02 PM
Re: How to edit Fotorama Gallery ?
My post was a reply to another. I'm not sure why it appears to be its own question. But yes, I am explaining how to override XML to adjust product image sizes.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2017
09:08 PM
01-08-2017
09:08 PM
Re: How to edit Fotorama Gallery ?
I was trying to reply here (same subject)
https://community.magento.com/t5/Programming-Questions/How-to-edit-Fotorama-Gallery/td-p/35860
https://community.magento.com/t5/Programming-Questions/How-to-edit-Fotorama-Gallery/td-p/35860
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2017
04:48 AM
02-02-2017
04:48 AM
Re: How to edit Fotorama Gallery ?
Hi, do you have do anything more than flush the cache? I've changed my view.xml and the images have changed but the outer div hasn't (fotorama__stage__shaft)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2017
05:17 AM
02-02-2017
05:17 AM
Re: How to edit Fotorama Gallery ?
In answer to my own question I resized '.page-layout-1column .product.media' in styles-l.less