This topic contains 1 reply, has 2 voices, and was last updated by  Marcin 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3063

    chris_walsh
    Member

    Hi there,

    How can I trigger Fancybox to open a link or iframe or inline div? I tried adding a ‘fancybox’ class to the link but that didn’t work. I also tried creating a new instance of fancybox, but again no luck:

    HTML

    <code>
    <a class=’modal’ href=’http://www.addthis.com/bookmark.php?v=300&pubid=ra-4ec1dac30cce7d5e&url=http%3A[KA_JobLink]&title=Job%20on%20EarthStream’   >Share</a></code>

    JS

    <code>

    $(“.modal”).fancybox({

    maxWidth: 800,

    maxHeight: 600,

    fitToView: false,

    width: ‘70%’,

    height: ‘70%’,

    autoSize: false,

    closeClick: false,

    openEffect: ‘none’,

    closeEffect: ‘none’

    });</code>

    #3068

    Marcin
    Keymaster

    Hi,

    I can only redirect You to plugin documentation and examples. Look for iframe and inline examples, check html and javascript and recreate. Since it’s customization I can’t help You more.

    Best
    Marcin

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Using fancybox to open HTML block’ is closed to new replies.