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
Shopify Partner
30 1 22

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

0 Likes
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.

1 Like
Shopify Partner
30 1 22

Tank you for the info

0 Likes
Shopify Partner
1704 47 151

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 the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org
0 Likes