• Resolved t2m

    (@t2m)


    WP Post Popup is great plugin. It can become better, however, by providing an option to display a popup card on hover over the link just like it shows in Wikipedia.

    Or, is it already possible and we just need some particular setting or tweaking?

    Regards!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author allurewebsolutions

    (@allurewebsolutions)

    That wouldn’t be very good user experience and will slow down the site from users accidentally hovering over things and triggering the popup. I wouldn’t recommend it.

    With that being said, it is possible with minor customizations to the plugin.

    Thread Starter t2m

    (@t2m)

    Thanks for the prompt reply! Yes, you are right that such hover cards may pose unnecessary load on server. But, I think, it’s good for users if they are able to see a brief description of something they encounter while reading a page without breaking the continuity. I myself love this feature in Wikipedia.

    So, it may be a good feature; at least for some. Can you please share that minor customisation code here for benefit of those who want to have it?

    Thanks!

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    You’d have to edit the plugin code, but change “click” to “hover” here: https://github.com/allurewebsolutions/wordpress-post-modal/blob/master/public/js/wp-post-modal-public.js#L183

    Thread Starter t2m

    (@t2m)

    Thank you very much! Is changing ‘click’ to ‘hover’ only thing we need to change? Or there something more to it?

    Thanks!

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    Nope, that’s it. If you want both click and hover, then you would do “click hover”

    Thread Starter t2m

    (@t2m)

    That’s wonderful!

    Thank you very much for sharing the tweak. Wonderful support for wonderful plugin!

    Regards!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Popup card on hover’ is closed to new replies.