Grow your CSS skills. Land your dream job.

Twitter Feed – How to get rid of created_at time

  • # January 28, 2010 at 2:40 pm

    I would like to add a twitter feed on my website, but I need to get rid of the text at the end of each tweet that says when it was posted (ex "about an hour ago"). How can I do this?

    My code looks like this:

    Code:


    Thanks!

    # January 31, 2010 at 3:58 pm

    I’m not sure how to do it with the official Javascript, but I use twitter.js (http://code.google.com/p/twitterjs/). It lets you set the parameters for the feed. To update the feed you call the function getTwitters(); and with that function you can specify how the feed is display. Here’s the function from my old site:

    Code:
    getTwitters(‘twitterFeed’, {
    id: ‘pathartl’,
    count: 3,
    enableLinks: false,
    ignoreReplies: true,
    clearContents: true,
    template: ‘
    %text%
    %time%


    });

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".