slider.currSlide.linkURL ?

David Linke's Avatar

David Linke

15 Aug, 2018 04:14 PM

Hello there,

say, I'm trying to get MagnificPopup to work in a rather special way.

For that, I'd need to change the line
lightboxImageURL = slider.currSlide.image
to
lightboxImageURL = slider.currSlide.linkURL

But, unlike slider.currSlide.videoURL, linkURL doesn't seem to exist as a property of currSlide, does it?

Or did I just get the property name wrong?

Cheers,
David

  1. Support Staff 1 Posted by Dmitry Semenov on 16 Aug, 2018 04:38 AM

    Dmitry Semenov's Avatar

    Hello,

    The slider doesn't parse data that is not used, you'll need to retrieve it manually from slide content, e.g.:

    slider.currSlide.content.find('a').attr('href')
    

    or

    slider.currSlide.content.filter('a').attr('href')
    

    ... if the link is a root element of your slides.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac