Title: Remove Button from single picture
Last modified: August 22, 2016

---

# Remove Button from single picture

 *  Resolved [leckeresinvegan.de](https://wordpress.org/support/users/leckeresinvegande/)
 * (@leckeresinvegande)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/)
 * Hi!
    Thank you for your great plugin 🙂 Is it possible to remove the Pin-it-Button
   from one single picture? What do I need to do?
 * Best regards!
    Christiane
 * [https://wordpress.org/plugins/pinterest-pin-it-button-on-image-hover-and-post/](https://wordpress.org/plugins/pinterest-pin-it-button-on-image-hover-and-post/)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/remove-button-from-single-picture/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/remove-button-from-single-picture/page/2/?output_format=md)

 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763113)
 * Hello Christiane,
 * Thanks for using our plugin.
    As you know we are using core Pinterest API for
   this plugin. In behalf of pin it button API we are not able to customize or edit
   Pinterest Code API. Sorry but we are not able to provide you this feature(remove
   the Pin-it-Button from one single picture).
 * Thanks
 *  [xchellerodriguez](https://wordpress.org/support/users/xchellerodriguez/)
 * (@xchellerodriguez)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763247)
 * Christiane,
 * Pinterest has a good solution for this that I just implemented on an image on
   my own site. It requires adding a tiny bit of HTML code to your image tag:
 * `nopin="nopin"`
 * So say for instance you have an image in a post. You would go into the ‘Text’
   view for that post, find the `<img src="/imagelocation" ... />` code, and insert
   the code I provided above into that. The resulting code should look like this:`
   <img class=" size-thumbnail wp-image-134 alignnone" src="/imagelocation" alt="
   Alt Tag" width="150" height="150" nopin="nopin" />`
 * Hope this helps!
 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763250)
 * Really thanks for posting a perfect solution for excluding an image to pin it.
 * Thanks
    Alex
 *  Thread Starter [leckeresinvegan.de](https://wordpress.org/support/users/leckeresinvegande/)
 * (@leckeresinvegande)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763255)
 * Great! Thank you very much! 🙂
 *  [designwise](https://wordpress.org/support/users/designwise/)
 * (@designwise)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763280)
 * This is the solution for how to exclude slider images. Thanks!
 *  [jodielsa](https://wordpress.org/support/users/jodielsa/)
 * (@jodielsa)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763315)
 * My site has not gone live yet, so I don’t have a link to include in this post.
 * I would like to remove the pin button from my logo that spans the top of the 
   page in my Prana theme. It’s a pdf that I uploaded to my Media folder, then used
   for my logo. I’m not sure where to find the code to add the nopin=”nopin”.
 * Thanks in advance for any help!
    Jodi
 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763317)
 * Hi Jodielsa,
 * It should be in a file named: “**custom-header.php**” in your [Prana theme](https://wordpress.org/themes/prana/)
   directory.
 * **Find Code** (around line no 6):
 *     ```
       <a>"><img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo( 'name' ); ?>" /></a>
       ```
   
 * **Update code as below** (add nopin=”nopin” attribute in <img> tag):
 *     ```
       <a>"><img nopin="nopin" src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo( 'name' ); ?>" /></a>
       ```
   
 * I hope that will work for you.
 * Thanks
    Alex
 *  [vincentjflorio](https://wordpress.org/support/users/vincentjflorio/)
 * (@vincentjflorio)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763341)
 * There’s likely way cleaner ways of going about this than adding it to the head
   without a priority number (like queuing an external file) but for the quick and
   dirty, this worked for me:
 *     ```
       add_action('wp_head', 'no_pin_outside_of_content');
   
       function no_pin_outside_of_content() { ?>
   
            <script type="text/javascript">
   
            jQuery(document).ready(function() {
   
                 jQuery("body.home * img").attr("nopin", "nopin");
            });
   
           </script>
       }
       ```
   
 * Note: This was a site where the homepage was the main blog index; single post
   pages aren’t covered by body.home so they don’t receive the “nopin” attribute
   and still receive a button.
 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763342)
 * Thanks vincent for posting good code snippet.
 *  [cvhall92](https://wordpress.org/support/users/cvhall92/)
 * (@cvhall92)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763346)
 * The plug-in is working well, thank you! I do have one question though, how can
   I remove the pin it button it from my avatar image? Thank you.
 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763347)
 * Can you share me screenshot and your site url ?
 *  [cvhall92](https://wordpress.org/support/users/cvhall92/)
 * (@cvhall92)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763348)
 * So my site is not yet activated and as far as the screenshot it’s my photo with
   the red “Pin it” button next to it. So essentially the photo to the left and 
   once you hover over it, the “Pin it” button pops up. I’ve managed to figure out
   how to take it out of my about pictures because of xchellerodriguez post above
   but I can’t figure out how to take it out of my avatar. Thanks again.
 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763349)
 * Is above solution not working for you?
 *  [cvhall92](https://wordpress.org/support/users/cvhall92/)
 * (@cvhall92)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763350)
 * I couldn’t figure it out. I deactivated the plugin.
 *  Plugin Author [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/#post-5763351)
 * NO problem.
 * Hope you find a new plugin which works for you.
 * Thanks for using our plugin.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/remove-button-from-single-picture/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/remove-button-from-single-picture/page/2/?output_format=md)

The topic ‘Remove Button from single picture’ is closed to new replies.

 * ![](https://ps.w.org/pinterest-pin-it-button-on-image-hover-and-post/assets/icon-
   256x256.jpg?rev=2425489)
 * [Weblizar Pin It Button On Image Hover And Post](https://wordpress.org/plugins/pinterest-pin-it-button-on-image-hover-and-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-pin-it-button-on-image-hover-and-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-pin-it-button-on-image-hover-and-post/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-pin-it-button-on-image-hover-and-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-pin-it-button-on-image-hover-and-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-pin-it-button-on-image-hover-and-post/reviews/)

 * 22 replies
 * 10 participants
 * Last reply from: [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/remove-button-from-single-picture/page/2/#post-5763360)
 * Status: resolved