How to Hide Images from Pinterest | The FitFilled Life

So you may be asking why would you want to hide images from Pinterest? Well, I won’t go into all the details again here, but the gist is vertical pins, with easy to read text and a CTA get the most repins. If you don’t know the answer then you’ll want to head on over and sign-up for Perfectly Pinterest.

This page contains affiliate links, which I receive a small commission for at no additional cost to you. However, I do use this product and absolutely love it!!! I would not recommend it to you if I didn’t! :o)

O.k, so you’ve created the most perfect pin possible with the best description you’ve ever written, don’t you want to make sure that’s the image that your readers pin??? Of course you do!

*This post may contain affiliate links, which means I may receive a small commission, at no cost to you, if you make a purchase through a link!*

Now there are three ways you can go about accomplishing this:

 

Manually add code to all your images.

To tell Pinterest to not save a specific image (i.e. that image won’t appear in any multi-select tool), you need to add a special nopin attribute to the image tag. To add the NoPin attribute manually, open up a post in the WordPress dashboard and click “Text”. Find the image tags in the source, and type the nopin attribute in to the image tag. The attribute is data-pin-nopin="true". Here’s how that would look in an image tag:

<img src="example.com/myimage.jpg" data-pin-nopin="true" />

And if your theme uses featured images, such as mine then it’s even more complicated as you’ll need to go into your sites files and add the following code at the very end of your theme / child theme function.php file.

function modify_post_thumbnail_html($html, $post_id, $post_thumbnail_id, $size, $attr) {
    $id = get_post_thumbnail_id(); 
    $src = wp_get_attachment_image_src($id, $size); 
    $alt = get_the_title($id); 

    $html = '<img src="' . $src[0] . '" alt="' . $alt . '" data-pin-nopin="true" />';

    return $html;
}
add_filter('post_thumbnail_html', 'modify_post_thumbnail_html', 99, 5);

 

Now, I’m totally going to tell on myself. Crashed my site doing what I know is wrong. But in my defense, I was just going to look at the code. No intention of making any changes to it. I know that you should NEVER make changes in the WordPress editor (you know that, right?). I know you should ALWAYS test your code in a secure safe environment.  Oh, and I also know to ALWAYS make a back-up before you make any changes live.

Did I do any of that before hand? NO

And what happended? I CRASHED MY SITE!!!

With new posts, pages and comments that had not been backed up yet!!! Talk about panic!

Thank goodness I knew how to get it back up and running, but that was a good hour of my time wasted. So, if you don’t know what you are doing, I would not recommend this option!

 

Hire a web designer to do it for you.

Hiring a web designer to just do it for you can be costly (I know because I am one). This would be and ongoing expense and do you really want to have to rely on another person every time you add an image to you website or blog? Probably not, I know I wouldn’t!

 

Add this plugin to your WordPress site.

Guess what, there’s a plugin that will handle all that tech stuff for you. Whew!

Tasty Pins includes a “Disable Pinning” checkbox for each image added to a post or page. Checking the box automatically adds the nopin attribute to the image, no code required to hide images from Pinterest!

 

how to add nopin with Tasty Pins

 

Not only can you add the nopin attribute with a click of a button, but is can also do all these cool things too:

  • SET PINTEREST DESCRIPTIONS
  • UTILIZE ALT TEXT FOR SEO AND ACCESSIBILITY
  • HIDE PINTEREST-SPECIFIC IMAGES FROM YOUR PAGE
  • DISABLE PINNING ON CERTAIN IMAGES
  • ADD A HOVER BUTTON ON ALL IMAGES
  • FORCE PINNING OF HIDDEN IMAGES

I won’t go into all the nitty-gritty details, I’ll let the folks over at Tasty Pin handle that part! Take a look and let me know what you think in the comments below!

Sign-up and get instant access to my Ultimate Resource Library created for entrepreneurs.

I'm adding new and exciting Freebies on a weekly basis so join now to have INSTANT ACCESS!

You have Successfully Subscribed!

Download the Spell Your Name workout

Thank You!

Get FREE Social Media Images!

Join our Social Media Images Club and get 5 new images every month, perfect for filling your content calendar and boosing engagement.

You have Successfully Subscribed!