Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Idiom

    (@brianbrey)

    Thanks for downloading. We are unable to reproduce that behavior in a basic WordPress environment (2017 theme). Do you have any other details about your set up? Maybe try disabling other plugins to see if it might be effecting the sharing plugin?

    Thread Starter jpen365

    (@jpen365)

    In case anyone else sees the same issue…

    I resolved the issue by adding some JS via a custom plugin. This was in the plugin php file:

    function detwit_essb_enqueue_scripts() {
      wp_enqueue_script( 'detwit-js', plugins_url( '/detwit-essb.js', __FILE__ ), $deps = array( 'easy_social_share_buttons-script' ), $ver = false, $in_footer = true );
    }
    add_action( 'wp_enqueue_scripts', 'detwit_essb_enqueue_scripts' );

    So that loads a js file and in the js file was this:

    jQuery(document).ready( function () {
      jQuery('a.ess-button--twitter').removeAttr('onclick');
    } );

    Just linking to the Twitter link is enough to generate the pop-up. The added ‘on-click’ was creating a duplicate window.

    • This reply was modified 7 years, 6 months ago by jpen365.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Two Twitter Pop-Ups Generated’ is closed to new replies.