Images that should not be allowed to pin to Pinterest get a class assigned -> data-no-pin=”no-pin”
I can easily do this with a plugin (Grow Social) or when editing an image in HTML but it’s not possible with the featured image very easily. Is there a hook or code I can add that will add the code (data-no-pin=”no-pin”) to the featured image of every post?
Thank you. I decided to suppress featured images from showing at all so Google can get to the content faster. (I still want the featured image to be used in the post lists via WP Show Posts).
I’ll keep the code you provided in case something changes.