nopin = "nopin" not working on individual images
-
I am trying to keep the header graphic and some images in a text widget from being pinned on pinterest by using nopin = “nopin” in the image tag. In theory this should work since it is in the html, but I am not having success.
What is the best way to keep the header graphic and other individual images from being pinned?
Thanks! Trish
Mod
Quote:In theory this should work since it is in the html, but I am not having success.How are you adding it to the image tag?
https://support.pinterest.com/entries/21101932-what-if-i-don-t-want-images-from-my-site-to-be-pinned
Please post a link to your site.
The site is http://homeschoolsuccess.com/
Thanks!
Missed the question about where I am adding the nopin attribute.
For the header image I’ve added it to the header.php file:
$header_img = '<img src="' . $header_img . '" alt="" />';
For the image in the text widget I added it to the img tag:
<img src="http://homeschoolsuccess.com/hs/wp-content/uploads/2012/08/label1.png" />
Any feedback is most appreciated! We are trying to keep people from pinning the header of the Like Us graphic because they don;t scale well on pinterest.
Quote:Missed the question about where I am adding the nopin attribute.For the header image I’ve added it to the header.php file:
$header_img = '';
For the image in the text widget I added it to the img tag:
Any feedback is most appreciated! We are trying to keep people from pinning the header of the Like Us graphic because they don’t scale well on pinterest.
Quote:Missed the question about where I am adding the nopin attribute.For the header image I’ve added it to the header.php file:
$header_img = '<img src="' . $header_img . '" alt="" />';
For the image in the text widget I added it to the img tag:
<img src="http://homeschoolsuccess.com/hs/wp-content/uploads/2012/08/label1.png" />
Any feedback is most appreciated! We are trying to keep people from pinning the header or the Like Us graphic because they don’t scale well on pinterest.
Quote:Missed the question about where I am adding the nopin attribute.For the header image I’ve added it to the header.php file (removed the quotes from this code snippet so it would display):
$header_img = <img src="." alt="class=header-img" />
For the image in the text widget I added it to the img tag:
<img src="http://homeschoolsuccess.com/hs/wp-content/uploads/2012/08/label1.png" />
Any feedback is most appreciated! We are trying to keep people from pinning the header or the Like Us graphic because they don’t scale well on pinterest.
Quote:Missed the question about where I am adding the nopin attribute.For the header image I’ve added it to the header.php file:
$header_img = '<img src="' . $header_img . '" alt="" class="header-img" nopin="nopin" />';
For the image in the text widget I added it to the img tag:
<img src="http://homeschoolsuccess.com/hs/wp-content/uploads/2012/08/label1.png" height="45" nopin = "nopin" />
Any feedback is most appreciated! We are trying to keep people from pinning the header or the Like Us graphic because they don’t scale well on pinterest.
Code between backtics please! 🙂 I’ve edited 4 of your posts.
Viewing 10 posts - 1 through 10 (of 11 total)
- 1
- 2
- You must be logged in to reply to this topic.