• Resolved qubed

    (@qubed)


    How do I get this type of Twitter feed / widget in my sidebar that telegramme.co.uk/services uses? I like how the feed shows up and also that there is a link to follow the user as well. Does anyone have any idea? Thanks!

    qubed

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter qubed

    (@qubed)

    Thank you for the response Samuel. The link you mentioned stated placing the code in the custom_functions.php for the thesis theme. I however do not have a custom_functions.php file and I am using a different theme, is there some other file where I should place the code? Thank you!

    qubed

    ignore the thesis bit if you don’t have it

    <script type="text/javascript" src="https://twitter.com/javascripts/blogger.js"></script>
    <script type="text/javascript" src="https://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=1"></script>

    put this bit in your theme’s header.php before the </body>

    <ul id="twitter_update_list">
    	<li>
    		<span>@<a href="https://www.twitter.com/matpacker">matpacker</a> OMG, hope you're not too damaged!</span> <a href="https://twitter.com/kristarella/statuses/1122887200" style="font-size: 85%;">19 minutes ago</a>
    	</li>
    </ul>

    put this bit where you want the tweets to show – like in a text widget in the sidebar or maybe on a tweets page, etc.

    Thread Starter qubed

    (@qubed)

    thank you for the help with this. and my apologies for sounding dense on this issue, but my html / code knowledge is amateur……. where do i need to place this part mentioned in the link provided:

    “A dash of HTML

    Then in the spot on your page where you want to show your latest tweets, you place the following code.”

    <div id="twitter_div"><ul id="twitter_update_list"><li>&nbsp;</li></ul></div>

    this works better than what I showed above and combines the 2
    <div id="twitter_div"><ul id="twitter_update_list"><li>&nbsp;</li></ul></div>

    put this bit where you want the tweets to show – like in a text widget in the sidebar or maybe on a tweets page, etc.

    Thread Starter qubed

    (@qubed)

    Thanks again Samuel.

    I am working on placing it in a text side bar widget.

    What I have done so far is implemented this into my header and changed the “username” to my own:

    <script type="text/javascript" src="https://twitter.com/javascripts/blogger.js"></script>
    <script type="text/javascript" src="https://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=1"></script>

    I have then placed this into my text widget for the sidebar:

    <div id="twitter_div"><ul id="twitter_update_list"><li>&nbsp;</li></ul></div>

    but I am not getting anything to display. Do I need to add CSS to my stylesheet to get this to work or add anything else anywhere else? Thank you.

    qubed

    Thread Starter qubed

    (@qubed)

    Thanks guys – I have it up and working just swell now. I truly appreciate the detailed help and significant insight. Please feel free to mark this as resolved.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to get this type of Twitter feed in Sidebar’ is closed to new replies.