• Resolved Jason_K70

    (@jason_k70)


    Hi. Is there any way to offset the tweets that are displayed; so starting with the fourth most recent tweet, for example, instead of the most recent?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Yes! Here are the steps:

    1) Add 3 to the number of tweets you actually want to display (for example, a 5 tweet feed would need the number set to 8)

    2) Go to the “Customize” tab for Custom Twitter Feed’s settings pages and add this to the “Custom JavaScript” area:

    jQuery(‘.ctf-item’).each(function(index) {
    if (index < 3) {
    jQuery(this).hide();
    }
    });

    Let me know if you have more questions!

    – Craig

    Thread Starter Jason_K70

    (@jason_k70)

    Hi Craig. Thanks so much for this, and sorry for the long delay!

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    No problem! Have a good rest of your week.

    – Craig

    I’m trying to use different offsets for different custom tweet feeds so the custom js won’t work as its applied to all feeds.

    It would be much easier if offset was something you could add to the shortcode. This seems to be a feature for custom facebook feeds but not custom twitter feeds, which I don’t understand.

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey preacherboy86,

    It’s possible this will end up as a setting at some point but what you can do in the meantime is use the “class” shortcode setting to target individual feeds. For example:

    [custom-twitter-feeds class=offset1]

    jQuery('.offset1 .ctf-item').each(function(index) {
        if (index < 1) {
            jQuery(this).hide();
        }
    });

    [custom-twitter-feeds class=offset2]

    jQuery('.offset2 .ctf-item').each(function(index) {
        if (index < 2) {
            jQuery(this).hide();
        }
    });

    [custom-twitter-feeds class=offset3]

    jQuery('.offset3 .ctf-item').each(function(index) {
        if (index < 3) {
            jQuery(this).hide();
        }
    });
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Offset tweets’ is closed to new replies.