Let users select which Pinterest image to pin
-
I am using this code from your tutorial:
jQuery(function($){ $(document).ready(function() { $('.shared-counts-button.pinterest').click(function(e) { e.preventDefault(); var elem = document.createElement('script'); elem.setAttribute('type', 'text/javascript'); elem.setAttribute('charset', 'UTF-8'); elem.setAttribute('src', 'https://assets.pinterest.com/js/pinmarklet.js'); document.body.appendChild(elem); }); }); });
When the Pin Button is clicked, my intention is to display the available pin images without opening the Pinterest window. However, the Pinterest window continues to open. Is that the expected behavior?
Thank you.
- The topic ‘Let users select which Pinterest image to pin’ is closed to new replies.