• Resolved jacksonsky

    (@jacksonsky)


    I’d like to enable the popup for just a few select links, using a code like this example on how to DISABLE a link:
    Open link

    I took a shot in the dark and tried this, but it didn’t work.

    Open link

    Can you provide the correct code?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author arisoft

    (@arisoft)

    Could you specify what code do you use? “Open link” from your original post is a just hyperlink.

    Thread Starter jacksonsky

    (@jacksonsky)

    Thank you for your reply. I forgot to include code tags in my message so it converted my code to links. Sorry about that.

    What I was asking was this: There is code to disable a link, as you provided here:

    <a href="https://wp-quiz.ari-soft.com" class="no-lightbox">Open link</a>

    I was wondering if there was code to enable the popup for one specific link, like this:

    <a href="#" class="ari-fancybox">Open link</a>

    In the meantime, I purchased the pro version and used the shortcode method. But I’d love to know for future reference.

    Thank you!

    • This reply was modified 5 years, 5 months ago by jacksonsky.
    Plugin Author arisoft

    (@arisoft)

    For example if you want to open links to external pages with fb-lightbox CSS class then open “ARI Fancy Lightbox -> Settings -> Advanced” page and populate “Custom JS code” with the following code:

    $('.fb-lightbox').fancybox({type: 'iframe'});

    link will look like:

    <a href="https://wp-quiz.ari-soft.com" class="fb-lightbox">Open link</a>

    Thread Starter jacksonsky

    (@jacksonsky)

    Ah, thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable Lightbox for select links’ is closed to new replies.