Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Gina Quatrine commented on Magnific Popup JS

$
0
0

I almost got it to work! I put the below code right before the </body> tag, but now the popup is also appearing on pageload (I just want it to popup when you click the assigned button):

  {{ 'reveal.css' | asset_url | stylesheet_tag }}


  {{ 'jquery.min.js' | asset_url | script_tag }}
  {{ 'jquery.reveal.js' | asset_url | script_tag }}

<script type="text/javascript">
 
   jQuery(document).ready(function($){

    
$('#myModal').reveal({
     animation: 'fade',                   //fade, fadeAndPop, none
     animationspeed: 300,                       //how fast animtions are
     closeonbackgroundclick: true,              //if you click background will modal close?
     dismissmodalclass: 'close-reveal-modal'    //the class of a button or element that will close an open modal
});

      });
</script>

 

How do I fix this?


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>