How to add multiple videos on fotorama gallery in Magento2?

I have to add multiple videos for each product on fotorama gallery. I am using this code, and it is working fine for a single video. <script> require([‘jquery’], function($) { $(document).on(‘gallery:loaded’, function () { var $fotorama = jQuery(‘div.gallery-placeholder > div.fotorama’); var fotorama = $fotorama.data(‘fotorama’); var video = ‘<?php echo $video_set[$i]; ?>’; $fotorama.on(‘fotorama:load’, function fotorama_onLoad(e, fotorama,…

Add static prefix to the product and category url

I have followed this tutorial Add a static URL prefix for product and category Magento 2 to create custom prefix for my store but i dont know why this is not working in my case I am sharing all the details here : etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator” type=”Demo\Mod\Model\CatalogUrlRewrite\ProductUrlPathGenerator”/> <type name=”Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator”> <plugin…

Getting Error : “You must declare “ids” as a unique array of fields in your source settings.” while trying to migrate for paragraph in Drupal 8

I have created a yml configuration for migration from CSV source into drupal using composer. After running the “drush migrate:import mbe_book_paragharphs”, I am getting the error as You must declare “ids” as a unique array of fields in your source settings. I am using migrate_source_csv 8.x-3.1 id: mbe_book_paragharphs migration_group: mbe_migrations label: ‘Import book paragraph’ source:…

Advance Custom Field Lightbox isn’t Working

For my gallery page I’m using ACF for display images as well as image lightbox. But lightbox is not working. Even I tried debugging js function and nothing wrong with it. Here is my code. page-gallery.php get_header();?> <section class=”content pull-left width-wide clear-both”> <div class=”wrap”> <!– Inside Content –> <div class=”inside-content inside-page pull-left width-wide clear-both”> <!–…