I want to set custom height and width of fotorama fullscreen image popup/lightbox. How to do that....please help.
How to Resize fotoroma library popup when clicking on product image on product view page in Magento 2?
758 Views Asked by Vishal Thakur At
2
There are 2 best solutions below
0
LitExtension Magento Migration
On
Check
app/design/frontend/{package}/{theme}/template/catalog/product/view/media.phtml.
If your theme is somehow similar with the default one you should find something like this:
<a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;"title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
<img
src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>"
width="56"
height="56"
alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>"
/>
</a>;
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in MAGENTO
- file_get_contents(): file created in the system's temporary directory error in Magento
- Decrypting Magento 2 customer passwords using email for migration to Shopify
- Is it possible in magento multi store website to get all category of all the store with single api
- Venia pwa + magento 2 categories and products issue
- Magento Rest Api Recaptcha Validation Failed Error
- Credit card fields showing under PayPal Express Checkout
- Unable to create a Specific coupon code in magento using REST API
- Mutagen copy multiple times project (4 copy of the same project)
- Magento 2 , query insert/update statments not binding with '?' variables
- Warning: session_id(): Cannot change session id when session is active
- System.ServiceModel.CommunicationException on WCF Web Service
- [{message: "Cannot query field "route" on type "Query".", extensions: {category: "graphql"},…}]
- Data written to PVC using job pod is not available in main POD
- Magento Order and Product pagination
- Trying to Upgrade Magento from ver. 2.3.4 to ver. 2.4.6 and causing Composer installation error
Related Questions in MAGENTO2
- Force Magento 2's checkout accordion to be open on first step, closed on second step
- get list of items from sku magento 2 programatically
- Decrypting Magento 2 customer passwords using email for migration to Shopify
- Venia pwa + magento 2 categories and products issue
- Magretno 2 how to send the request of place order when user checked on the check box of terms and condtion
- Magento Rest Api Recaptcha Validation Failed Error
- How to change server Elasticsearch version?
- Difficulty installing Magento2
- problem to include fontawesome 6 on magento 2
- Mutagen copy multiple times project (4 copy of the same project)
- Magento 2 Bulk endpoint fails
- How to setdata of custom dynamicrows ui component from category_form.xml in magento 2
- setup:di:compile error after upgrading to Magento 2.4.6
- magento 2.4.6 styles overide issue
- Magento2 : How to add custom validation to the dynamic rows created using UI component
Related Questions in FOTORAMA
- Insert an array of images in another array
- Is it possible that in Fotorama arrows can change?
- Get event of fotorama video play button being clicked
- Magento 2 - How to replace webP image in Fotorama JS
- How to Resize fotoroma library popup when clicking on product image on product view page in Magento 2?
- How to add external image in magento2 pdp
- Magento 2 Fotorama swipe with mouse open fullscreen mode
- Accessing a Declared Variable
- fotorama gallery not working inside Swiper slider
- Fotorama jQuery Image Gallery Not loading to full size
- How to limit magento 2 items at thumbnail slider for product page
- Image swatches working on every product page except one in particular
- Zoom feature for Fotorama jQuery plugin
- Add custom video at Fotorama - Magento 2 Product Page
- Using fotorama in vue
Related Questions in MAGENTO2.4
- get list of items from sku magento 2 programatically
- Processing GTAG command: ["event", "purchase", ..] not received in GA4 Magento 2.4
- How to setdata of custom dynamicrows ui component from category_form.xml in magento 2
- setup:di:compile error after upgrading to Magento 2.4.6
- Problem with child product in Magento 2.4.6 Cart
- Error- Elasticsearch-full getting an error explained the the question
- After update in magento 2.4 all require js file not working
- An error with Magento 2 Admin panel page/Unable to access the admin page - Rest of the site is still fine
- Magento 2.4.6 : Saving a new configurable product is slow
- deprecated functionality trim() passing null to parameter #1 ($string) of type string is deprecated
- DB alternative for ISPC in combination with Magento2?
- How do i successfully install magento2?
- When adding prefix in media URL category image upload gets affected in Magento 2.4
- Magento 2: The newly added column does not appear in the product export csv file
- Issues with Responsiveness and Custom Styling in "Related Products" Block in Magento 2
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

You have to edit the following file:
Here you can add your options: