bottom bar only shows counter (mfp 1.1.0 on Drupal 7)
ixaxi opened this issue · 0 comments
I'm using mfp 1.1.0, on a Drupal 7 site. My page generates 18 images, each when clicked opens up in the mfp overlay.
However, no matter what I try, I can't get the bottom bar to show either title or alt of the image shown. I delved into the js file (jquery.magnific-popup.min.js) but can't get my head around how the 'markup' bit generates the title etc. The script does generate the alt value in the img tag, and I added the title page there as well, but where the title should show in the bottom bar it remains empty..
I had a look at the issues here and to my surprise found some code in src/image.js which seems to retrieve the title data. However, that code is utterly absent from the jquery.magnific-popup.min.js file?
Now I put the jquery.magnific-popup.min.js and the jquery.magnific-popup.js next to each other so to speak and find they are not at all the same, whereas I assumed the one was just the minified version of the other? The jquery.magnific-popup.js version does seem to contain the title code etc.
- update: I've tried using the non-minified file; the magnific pop-up still works exactly as before, but still the bottom bar remains empty.. -
Xander
(PS I tried installing the Drupal Magnific pop-up but then my entire site goes into permanent loading image, so I'm guessing that triggers a jquery conflict somewhere?)