Is there a way to remove the product name below the product image on the product detail page?
How to override fotorama.js?
Thanks, JM
Try to put it it in your custom theme at below path.
app/design/frontend/YourThemeVendor/Theme/web/fotorama/fotorama.js
Deploy static content and clear cache to see changes.
fotorama.js
from pub folder than deploy static content. Let me know if it works.
Commented
Dec 4, 2018 at 6:54
Create requirejs-config.js file in your module - Path should be like Vendor/ModuleName/frontend/requirejs-config.js
Code to be placed with in requirejs-config.js file:
If fotorama.js exists in Core/Vendor
var config = {
map: {
'*': {
'Magento_Review/js/process-reviews':'Vendor_ModuleName/js/fotorama.js'
}
}
};
If fotorama.js is not existed in Vendor(Place your script inside Vendor/ModuleName/frontend/web/js/fotorama.js)
var config = {
map: {
'*': {
uniqueName:'Vendor_ModuleName/js/fotorama'
}
}
};