Pinterest "Pin It" Button
[resolved] New window (4 posts)

  1. awilson3rd
    Posted 1 year ago #


    I have installed the latest version of the plugin and was hoping there would be something in the shortcode to allow me to set the pinit window open in a new tab or new window?

    Is this possible?




  2. Phil Derksen
    Plugin Author

    Posted 1 year ago #

    Hi Andrew -- Right now this plugin is just using the same functionality for popups that Pinterest's own embed code, bookmarklet and browser extensions use.

    If you're familiar with WordPress filters and/or HTML & JS, you could disable the pinit.js file that runs, which I believe would cause each link to just open a new window, maybe adding a target="_blank" attribute to each link tag as well.

     * Hooked to the wp_print_scripts action, with a late priority (100),
     * so that it is after the script was enqueued.
    function wp_dequeue_pinit_script() {
       wp_dequeue_script( 'pinterest-pinit-js' );
    add_action( 'wp_print_scripts', 'wp_dequeue_pinit_script', 100 );

    Note I did not test this but modified from http://codex.wordpress.org/Function_Reference/wp_dequeue_script

  3. awilson3rd
    Posted 1 year ago #

    Hello Phil,

    Thanks for the reply.

    I did try the target blank but this had no effect.

    I found this while searching for an answer, is this something that could be applied to this plugin too, might be easier to edit the plugin php files?




  4. Phil Derksen
    Plugin Author

    Posted 1 year ago #

    We will look into that for an upcoming release. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pinterest "Pin It" Button
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic