Support » Plugin: Custom Twitter Feeds » GDPR: How to without platform.twitter.com/widgets.js

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey Julien,

    Try adding the following to your theme’s functions.php file:

    function sb_dequeue_intents() {
        wp_dequeue_script( 'ctf_twitter_intents' );
    }
    add_action( 'wp_footer', 'sb_dequeue_intents' );

    – Craig

    AdamCatalyst

    (@adamcatalyst)

    Woah, this is exactly what I was looking for to speed up my site! Calls to widgets.js was causing issues, and this put a stop to them. Will this

    function sb_dequeue_intents() {
        wp_dequeue_script( 'ctf_twitter_intents' );
    }
    add_action( 'wp_footer', 'sb_dequeue_intents' );

    have any adverse effects on the plugin?

    Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey AdamCatalyst,

    Glad that will work!

    The only adverse effect will be that the “tweet actions” (reply, retweet, and like) cannot be done from your website. Visitors will have to go to twitter.com to do this.

    Let me know if you have more questions!

    – Craig

    Thanks Craig!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.