Ich arbeite an benutzerdefinierten magnific Popup mit Shopify site.In meine header.liquid Datei bin mit dem magnific Popup-Inhalt aufrufen.magnific Popup funktioniert nicht in Shopify
<button id="open-popup" >Open popup</button>
<div id="my-popup" class="mfp-hide">
popup content here.
</div>
Hier habe ich das Skript in hinzugefügt theme.js.liquid
$('#open-popup').magnificPopup({
items: [
{
src: '#my-popup',
type: 'inline'
}
],
gallery: {
enabled: true
},
type: 'image'
});
aber es zeigt die folgende Fehler
TypeError: $(...).magnificPopup is not a function
Wenn jemand bitte sagen Sie mir, wenn ich bin vermisse etwas wie js Bibliotheksdateien.
Vielen Dank im Voraus.