A fresh mix of code snippets and tutorials

Disable Pinterest on Your Pages

Pinterest is a social-media service that people can use to collect your site’s images. The Pinterest browser extension and app add a “Pin it” (or whatever) button to the images that are included on your web pages. That way users can just click a button to add your images to their account on Pinterest. Fortunately, Pinterest gives us a way to opt out. Here is how to disable the “Pin it” functionality via the HTML <meta> tag.

There are two ways of going about disabling Pinterest apps and extensions from working their magic on your pages. Add the following tags to the <head> section:

<meta name="pinterest" content="nohover">
<meta name="pinterest" content="nopin">

That should definitely do the job, although both meta tags probably aren’t necessary. Also, there may be other meta values and attributes that you can use to modify default Pinterest behavior. Here is one example where we send a custom message:

<meta name="pinterest" content="nopin" description="Sorry, Pinterest Not Allowed!">

If you find any others, please let me know so I can add them to this tutorial. Thanks!

★ Pro Tip:

Wizard’s SQL Recipes for WordPressSAC ProThe Tao of WordPress