Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Scott (@scottsweb)

    (@scottsweb)

    Hi, glad you are enjoying the plugin!

    The Pinterest buttons are most likely being added to your site via a browser plugin, when I visit your site I do not see the ‘pin it’ buttons on those images.

    More details here: https://support.mozilla.org/en-US/questions/1020012

    I am not sure how you would disable the buttons on just your site or a particular set of images.

    Thread Starter E

    (@erinheaton)

    Sorry, I should have explained more about how Pinterest works.

    You’re right, there aren’t any pin it buttons displayed on my instagram images. That is just the way I want it.

    As a Pinterest user, one can pin any image from any website no matter if it has a pin it button or not. You either use a browser extension or a bookmarklet, and that brings up an overlay with all the images from that page.

    Pinterest allows website owners to exclude specific images from being pinned by placing a nopin=”nopin” within the html image tag. For example, <img src=”picture.jpg” nopin=”nopin”>. This makes it so that the image does not even show in the pinnable options for that page.

    I was just wondering if there was some way to add this to the plugin? I really don’t want those images showing up as images people could pin, and they also just clutter the options for images I do want people to pin. Blogs like mine get the majority of their traffic from Pinterest. 85% of my traffic is referred from Pinterest.

    Plugin Author Scott (@scottsweb)

    (@scottsweb)

    Thanks for the info.

    Your only real option for this at the moment is to hack the plugin. You can see the <img/> tag on this line: https://github.com/scottsweb/wp-instagram-widget/blob/master/wp-instagram-widget.php#L98

    You could modify that to include nopin="nopin"

    Thread Starter E

    (@erinheaton)

    Thank you so much! I inserted it into the plugin code and it worked!

    Plugin Author Scott (@scottsweb)

    (@scottsweb)

    No problem. If the plugin updates in future you may need to re-apply the patch or I may make it part of the plugin (or a hidden setting).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Want to add nopin code to Instagram images’ is closed to new replies.