Prevent my collection images on Pinterest

Highlighted
Tourist
4 0 1

I found the Pinterest code for preventing individual images from being pinned from my site.

( <img src="foo.jpg" nopin = "nopin" /> ) My product images are watermarked, but my collection images are not. I'd like to apply this code to all collection images on my site. Any help would be appreciated. 

0 Likes
Highlighted
Shopify Partner
53 3 30

Sorry for the off-topic question, why would you want to disable pinterst pining?

Developer of PixPix image editor for Shopify
0 Likes
Highlighted
Tourist
4 0 1

My collection images are not watermarked. I see Pinterest as a careless community of copycats. I sell art prints and don't want it pinned without watermarks. My product photos are watermarked, just not the collection images.

Highlighted
Shopify Partner
53 3 30

Tank you for the info

Developer of PixPix image editor for Shopify
0 Likes
Highlighted
Shopify Partner
2471 128 398

The solution depends on theme, any customizations, or apps in use.

Also whether this is an image added to the collection itself or embedded in a description

If embedded in a description use the view source to manually insert the code for the image tag.

For themes generally in your themes admin myshopify.com/admin/themes

  • Make a backup either by export or theme duplication
  • used the edit code for your target theme, 
  • find and open files related to collections collection.liquid or sub templates it includes or sections it uses,
  • Find either the opening html image tag( <img...) or the liquid filter generating the html tags( {{ ..... | img_url}} ,
  • for html tags( <img...) just added your attribute and value ( nopin = "nopin" )
  • for liquid filter ones ( {{ ..... | img_url}} you'll want to replace it with the html version , or try passing it as a param

Note: this is for themes on the online channel and will in no way automatically add this opt-out attribute to other channels(twitter,facebook) that may consume images on your collection data, always verify.

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
Highlighted
New Member
4 0 0

I did not find that

0 Likes
Highlighted

Thanks for sharing, this help me

Best collection of iPhone SE 2020 Case
0 Likes