Getting my Twitter widget to work!

  • Unknown's avatar

    I have added the Twitter Timeline widget but cannot make it work. When in my dashboard and I paste my twitter feed code into the widget setup it simply goes away when I hit Save. I have tried this in Chrome and Firefox without success. Does anyone have any ideas? The code I am pasting in is below . . . Thanks

    Tweets by @richardsgilbert
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);</script>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Are you referring to this widget and using the appropriate guide for free hosted WordPress.com blogs?
    http://en.support.wordpress.com/widgets/twitter-timeline-widget/

  • Unknown's avatar

    Yes, timethief. The code simply vanishes from the box for it in the layout. On my blog page, the Follow Me does highlight when my cursor goes over it but clicking does nothing, because there is not content there because it hasn’t accepted it!

  • Unknown's avatar

    As the instructions say, you’re not supposed to post the script code in. You’re supposed to post the SHORTCODE in. This is the format:

    [twitter-timeline id=1234 username=yourhandle]

    What exact shortcode are you using?

  • Unknown's avatar

    So it’s not the whole thing, as the twitter widget insructions say? I pasted the whole thing:

    Tweets by @richardsgilbert
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);</script>

  • Unknown's avatar

    Hi richardgilbert,

    You create the widget first on Twitter, and then use this exact shortcode wherever you want it to appear:

    [twitter-timeline id=1234 username=yourhandle]

    Where the ID is a number generated by Twitter and username is your own Twitter username.

    You should not insert all of the code that Twitter gives you, as that will not work on WordPress.com.

    Detailed directions for the Twitter Timeline widget, including screenshots, can be found here:
    http://en.support.wordpress.com/widgets/twitter-timeline-widget/

  • Unknown's avatar

    Thanks, Jackie! I will follow that link—didn’t know ALL the code does not work, since Twitter says to paste it all in . . .

  • The topic ‘Getting my Twitter widget to work!’ is closed to new replies.