Title: Pinterest Functions Editing
Last modified: August 21, 2016

---

# Pinterest Functions Editing

 *  [Dan14](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pinterest-functions-editing/)
 * I have Pinterest Js file and functions for displaying Pinterest directly inside
   all times on the website. I wish to limit it to images that are displayed only
   inside posts and not on featured images.
 * This is the functions code that is linked to Pinterest JS. What do I need to 
   change to limit it to images inside posts only?
 *     ```
       add_action( 'wp_enqueue_scripts', 'wpsites_pin_images_script' );
   
       function wpsites_pin_images_script() {
           wp_register_script( 'pin-images',
               get_stylesheet_directory_uri() . '/pin.js',
               false,
               '1.0',
               true
           );
   
           wp_enqueue_script( 'pin-images' );
       }
   
       Pin.js new file
   
       (function(d){
         var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
         p.type = 'text/javascript';
         p.setAttribute('data-pin-hover', true);
         p.async = true;
         p.src = '//assets.pinterest.com/js/pinit.js';
         f.parentNode.insertBefore(p, f);
       }(document));
       ```
   

The topic ‘Pinterest Functions Editing’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Dan14](https://wordpress.org/support/users/dan14/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/pinterest-functions-editing/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
