Support » Plugin: Pinterest "Pin It" Button » New window

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Phil Derksen

    (@pderksen)

    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

    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?

    http://wordpress.org/support/topic/plugin-pinterest-pinboard-widget-open-pins-in-new-window

    Thanks

    Andrew

    Plugin Author Phil Derksen

    (@pderksen)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New window’ is closed to new replies.