Adding a Twitter feed

It’s easier than you think :)

Go to your Twitter account, and click on the Settings menu (looks like a gear wheel), then ‘Widgets’ to get to twitter.com/settings/widgets

Click on the ‘Create new’ button and you should then be at a configuration page, with your Twitter user name etc. Make sure ‘exclude replies’ (so your site doesn’t start advertising clients and others!) and ‘opt-out…’ are ticked, then click on ‘save changes’.

Some HTML will be displayed, copy it. It will look like:

<a class=”twitter-timeline” data-dnt=”true” href=”https://twitter.com/YourEscortSite” data-widget-id=”0000000000000000″>Tweets by @YourEscortSite .. etc etc .. </script>

.. except with a different number and username :)

Probably the best place to display them is in a side bar ‘widget’ on your site. Log in to it with your administrator account, and go to the Appearance / Widgets menu.

You’ll note that on the right, there’s ‘main sidebar’ area, which probably has a couple of things there already (typically including ‘Recent posts’ for your latest blog posts), and in the middle there’s an array of possible widgets to put there.

Click and drag the ‘Text’ one to the main sidebar area. If it is not already showing the space for the title and content, expand it, by clicking on the little triangle.

Give it a title like ‘My Tweets’, and paste the HTML in the currently empty big box. Click ‘save’. Done!

You can also add the code to any page or post but you must use the text mode of editing rather than the visual one to do so, otherwise WordPress will ‘cleverly’ convert the < characters into ‘&lt;’ (they’re special characters to browsers) and it won’t work.

The advantage of doing it this way is that when Twitter next change their routines, they will need to make it work with their own way of doing things, but can and do happily stuff third party ways of doing it.

You need to know that however you do it, some adblockers count it as an ad, and so not every visitor will see it…

Since WordPress 3.5, you can also put a tweet’s URL on a line by its own and it will be treated specially:

Leave a Reply

Your email address will not be published. Required fields are marked *