I'd like to have arrows placed next to counter, roughly like this:
< 2 of 19 >
where '<' and '>' are the arrow buttons under the photo in "figcaption .mfp-bottom-bar". Since the default arrows are in the .mfp-container, I cannot just absolutely position them, because the picture can have any height and width and I need it to be pixel perfect.
I have one nonfunctional solution: in the gallery object in the $('').magnificPopup call
{
tCounter:
"<button title='previous' type='button' class='mfp-arrow mfp-arrow-left mfp-prevent-close'><</button>"
+
" %curr%/%total% "
+
"<button title='next' type='button' class='mfp-arrow mfp-arrow-right mfp-prevent-close'>></button>"
}
this unfortunately doesn't trigger anything even though original arrows still work.
So I would like to know either:
Looks like I didn't read api carefully enough
var magnificPopup = $.magnificPopup.instance;
$('body').on('click', '#photo-prev', function() {
magnificPopup.prev();
});
where #photo-prev is id of previous button