WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Twitter Timeline (44 posts)

  1. Parham
    Member
    Posted 1 year ago #

    I have found what is causing the issue in my case.
    This widget, en-queues the twitter script using a protocol relative url. And I am using bwp-minify plugin, which apparently doesn't support protocol relative urls, so it doesn't include widget.js script!

    As a fix, I have added the following line to my functions.php which registers the script with an absolute url:

    wp_register_script( 'twitter-widgets', 'http://platform.twitter.com/widgets.js', '', '', true );
  2. Alison Gillespie
    Member
    Posted 1 year ago #

    I am having troubles similar to what is listed here by others. I followed the instructions for editing the twitter timeline widget, but when I hit save it just erases what I put into the box. The widget then appears on my site as a static box that just says "Follow Me on Twitter" and "My Tweets". No tweets appear, no timeline. Its just text.

    I have read through other posts above but none of the fixes that worked for others have worked for me or seem to apply to my configurations.

    I think perhaps there is a serious flaw with this widget that needs some attention. For now, I'm removing the widget from my site and hoping that the next update of the Jetpack plug-in will address this problem.

  3. daileycon
    Member
    Posted 1 year ago #

    Why are you guys even using the widget? Just add a text widget and paste the widget code twitter gives you. Add the advanced options to make it look like you want.

  4. Alison Gillespie
    Member
    Posted 1 year ago #

    @daileycon -- Thanks so much for trying to help. But I don't think I'm as good with code as you are... can you help with more specific instructions for placing the twitter code? I tried it and it didn't work. And I'm not seeing any place for "advanced options."

  5. daileycon
    Member
    Posted 1 year ago #

    These are the advanced options I'm using, change as you like:
    "noheader nofooter noborders transparent noscrollbar"

    Add a text widget and add this code. Just change the twitter id and widget id to yours:

    <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/YOURTWITTERID" data-widget-id="YOURWIDGETID" data-chrome="noheader nofooter noborders transparent noscrollbar" data-tweet-limit="3">Tweets by @YOURTWITTERID</a>
    <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>
  6. daileycon
    Member
    Posted 1 year ago #

    Change this to show more tweets data-tweet-limit="3"

  7. Alison Gillespie
    Member
    Posted 1 year ago #

    @daileycon. Okay, now I know I am not experienced enough. In the text widget I have there is no place that I see for code. All of my attempts have just resulted in long streams of code showing up in a text box on my site -- not really what I want to happen!

    Thanks anyway. I think I'll have to wait for the "widget for dummies" version of this, which is kind of what I depend on Jetpack to be. :)

    Hopefully your response will help others, though, who are better at code and widgets.

  8. dash8x
    Member
    Posted 1 year ago #

    If you want to remove the scroll bar and limit the number of tweets from the Jetpack Twitter Timeline widget, then try this fix.
    http://arushad.org/how-to-remove-scroll-bar-and-limit-tweets-on-jetpack-twitter-timeline/

  9. hnzz
    Member
    Posted 1 year ago #

    Anyone an idea how to change text-size etc via css? Any help much appreciated...

  10. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi hnzz, you won't be able to change with with CSS as it's inside an iframe. If you look at https://dev.twitter.com/docs/embedded-timelines#customization the options provided by Twitter are fairly limited.

  11. hnzz
    Member
    Posted 1 year ago #

    Ok, anyway i now know that it is no use trying to pursue that...

  12. tomk-m
    Member
    Posted 1 year ago #

    The problem is as described by Parham above. If I change the wp_enqueue_script not not use a protocol-agnostic URL for Twitter's widget.js in modules/widgets/twitter-timeline.php then the widget works as expected.

  13. Halfpatbxl
    Member
    Posted 6 months ago #

    Hi, what's the deal with this jetpack twitter timeline? Mine works in Safari but in Chrome it shows 'My Tweets' only. I've tried the text box method as well with no luck. Has anyone found a solution?

  14. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    @Halfpatbxl - I'd suggest starting your own thread - as this one is over 6 months old and both Twitter and JetPack have changed in that time.

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic