title: Magnific Popup - WordPress Divi Theme - Uncaught TypeError: Cannot read property 'top' of undefined
body: <p>I'm trying to get the lightbox/modal windows working on this page: WordPress (4.7.2; no-plugins enabled) site with Divi theme which uses Magnific Popup (v1.1.0)</p>
  
  <p><a href="http://www.mucha-art.com/portfolio/" rel="nofollow noreferrer">http://www.mucha-art.com/portfolio/</a></p>
  
  <p>When I click on one of the images instead of the lightbox/pop-up working, I get a js error:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'top' of undefined
      at t._getOffset (jquery.magnific-popup.js:4)
      at HTMLAnchorElement.&lt;anonymous&gt; (jquery.magnific-popup.js:4)
      at HTMLAnchorElement.dispatch (jquery.js:3)
      at HTMLAnchorElement.r.handle (jquery.js:3)
      at Object.trigger (jquery.js:3)
      at n.fn.init.triggerHandler (jquery.js:3)
      at y (jquery.magnific-popup.js:4)
      at t.open (jquery.magnific-popup.js:4)
      at t._openClick (jquery.magnific-popup.js:4)
      at HTMLAnchorElement.d (jquery.magnific-popup.js:4)
  </code></pre>
  
  <p>...seems to be pointing to line 722 in the console:</p>
  
  <pre><code>e.top -= a(window).scrollTop() - f;
  </code></pre>