• Resolved Political83

    (@political83)


    First let me say how much i like the tweet, I was looking for ages for a lightweight plugin that would let me have a horizontal carousel to display my tweets.

    That said I am having some issues with the implementation, I am using the below shortcode on my homepage, however it is only displaying the latest tweet:

    <?php echo do_shortcode( "[rotatingtweets screen_name='VoteJasonBrown' rotation_type='carousel' show_meta_reply_retweet_favorite='0' carousel_horizontal='1' show_meta_prev_next='1' np_pos='bottom' prev='<' next='>' tweet_count='10',carousel_count='4',carousel_responsive='1']" ) ?>

    You can see the results of this on my site here: https://votejasonbrown.uk

    Also the Next/Previous links do not work all they do is bounce the page back to the top.

    In essence what I am trying to produce is something like this

    Im sure I have missed something quite simple, but its getting quite frustrating so any help you can give me would be appreciated and stop me tearing my hair out.

    https://www.ads-software.com/plugins/rotatingtweets/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter Political83

    (@political83)

    Hi Martin, it looks like there was a conflict with another plugin, I now have it working. If you take a look at my site you will see that 2 tweets are showing at a time how can I make it so its just one tweet at a time. Also is it possible to remove that automation so that it only move to the next tweet by clicking the next, button.

    Plugin Author Martin Tod

    (@mpntod)

    To get to one tweet, you don’t need the carousel. Try:

    <?php echo do_shortcode( "[rotatingtweets screen_name='VoteJasonBrown' rotation_type='scrollLeft' show_meta_reply_retweet_favorite='0' show_meta_prev_next='1' np_pos='bottom' prev='<' next='>' tweet_count='10']" ) ?>

    The 'prev next' functionality is behaving very strangely, I agree! Can you check whether moving to 'scrollLeft' solves the problem?

    Thread Starter Political83

    (@political83)

    Thanks for the super quick response Martin. looks a lot better.

    Is it possible so speed up the transition between tweets and remove the automation so that they only transition on next/previous clicks?

    Plugin Author Martin Tod

    (@mpntod)

    Sure. Using the options here, you could speed up the transition via setting speed=500 and slow down the transition to an hour by setting timeout=3600000

    Martin

    Thread Starter Political83

    (@political83)

    Thanks Martin great support as ever. I don’t know if you’ve noticed but when you scroll to the next tweet with the previous/next buttons the slider actually jumps over the next tweet to actually display the next but one. Any idea what’s causing this.

    Also would it be possible to move the previous/next buttons to the side of the slider to that previous is on the left and next on the right with the tweets showing between the buttons?

    Plugin Author Martin Tod

    (@mpntod)

    If you go with np_pos='beforeafter' and use the development version of the plug-in, this should work.

    I’ve also seen other people do it with the main version of the plug-in and CSS, but can’t remember how they did it or where to link to them!

    Thread Starter Political83

    (@political83)

    I have the latest developer version but every other tweet is been skipped and not displayed, any idea of whats going on?

    Plugin Author Martin Tod

    (@mpntod)

    It’s because your ‘PoliticalPress Child Theme’ is loading its own copy of jQuery Cycle 2 – and so each copy of the script is responding to the command to move forward a slide.

    This is fixable, but I need to know how the template adds the script. Somewhere in the functions.php file, there will be some lines along the lines of:

    wp_enqueue_script('cycle2',get_template_directory_uri() . '/js/jquery.cycle2.min.js',array('jquery'),'v20130909',true);
    wp_enqueue_script('jcarousel',get_template_directory_uri() . '/js/jquery.jcarousel.min.js',array('cycle2','jquery'),'0.2.9',true);

    Can you post a copy of those lines here?

    Thread Starter Political83

    (@political83)

    Hi Martin, I have added np_pos='before after' but this puts the arrows above and below the tweets not to the left and right, is there a way to move the to the left and right?.

    As for Cycle 2, this is what is in my Functions file:

    wp_register_script('cycle2', $java_script_url.'jquery.cycle2.min.js', array('jquery'), 'v20130909', true);
                wp_register_script('jcarousel', $java_script_url.'jquery.jcarousel.min.js', array('jquery'), '0.2.9', true);

    There is also another reference to it in the file, I’ don’t know it this is relevant thought to fixing the problem, that reads:

    wp_enqueue_script('cycle2');

    I hope this is helpful.

    Plugin Author Martin Tod

    (@mpntod)

    Very helpful! Many thanks.

    Does the new development version help?

    Thread Starter Political83

    (@political83)

    Thanks for the awesome support Martin. The latest developers version has made the previous/next controls disappear, does this version still support np_pos=’before after?

    Thread Starter Political83

    (@political83)

    The updated dev version doesnt seam to fix the problem.

    Plugin Author Martin Tod

    (@mpntod)

    It should do (as per here) – but it should be np_post='beforeafter'.

    Martin

    Thread Starter Political83

    (@political83)

    Hi Martin, the latest version works like a charm.

    Is their a way to move the next/prev arrows to the sides and style them?

    Plugin Author Martin Tod

    (@mpntod)

    It will all need to be done via styling. Something like:

    .rtw_prev,
    .rtw_next,
    .rotatingtweets {
         display: inline;
    }

    to move them onto one line. And then further styling (or replacement with images) to get the arrows how you want them.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Horizontal carousel only displaying one tweet’ is closed to new replies.