I would like to add the pinterest button to my fancybox images
I am putting my getscript function in the beforeLoad and the afterLoad function of fancbyox but I don't know how to set data-pin-hover="true"
$.getScript('//assets.pinterest.com/js/pinit.js',
function() {
});
Any help would be appreciated.
pinit.js script wasn't able to attach click to dynamically injected HTML.. So as a workaround, the pin button will simply open the share page in a popup..
I used the fancybox template option to add the pin button to image box and added other jquery code to handle the hover on fancybox and click event of the pin button
Script and CSS
HTML