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

    (@yingling017)

    There’s currently no option in the plugin for switching between click or hover. However, Easy Footnotes uses the qtip2 jQuery plugin for creating those hover. You could edit the qtipcall js file to have qtip show and hide on click. https://jsfiddle.net/qTip2/x0ocvp52/

    One note, if you edit the plugin file directly any future updates will overwrite your changes. It’ll be a little bit before I can add it into the plugin directly.

    Thread Starter The Quintessential Mind

    (@andrilio)

    Thanks so much! You are awesome.

    Thread Starter The Quintessential Mind

    (@andrilio)

    I did that but I would also like the bubble to close whenever I click anywhere. How do I combine click and unfocus in the same script?

    $(document).ready(function()
    {
    // Show tooltip on all <a/> elements with title attributes, but only when
    // clicked. Clicking again will hide it.
    $(‘.easy-footnote a’).qtip({

    style: {
    classes: ‘qtip-bootstrap’
    },
    show: ‘click’,

    hide: {
    event: ‘unfocus’,
    fixed: true
    }
    });
    });

    When I do that click doesn’t work.

    Thread Starter The Quintessential Mind

    (@andrilio)

    Ignore the last one! Fixed it.

    hide: ‘unfocus, click’, is the solution. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Click instead of hover’ is closed to new replies.