Viewing 1 replies (of 1 total)
  • Plugin Author Martin Tod

    (@mpntod)

    It is!

    If you go to lines 472-477 of the rotatingtweets.php file, you should see:

    /* Experiment with Prev / Next buttons
    if($args['show_meta_prev_next']):
    	if(!empty($meta)) $meta .= ' · ';
    	$meta .= '<a href="#" class="rtw_prev">prev</a> &middot; <a href="#" class="rtw_next">next</a>';
    endif;
    */

    Change that to:

    if(!empty($meta)) $meta .= ' &middot; ';
    $meta .= '<a href="#" class="rtw_prev">prev</a> &middot; <a href="#" class="rtw_next">next</a>';

    Then go to /js/rotating_tweet.js and remove /* and */ from lines 41 and 55 leaving:

    jQuery(rotate_id).cycle({
    	pause: 1,
    	height: rotate_height,
    	timeout: rotate_timeout,
    	prev: jQuery(rotate_id).find('.rtw_prev'),
    	next: jQuery(rotate_id).find('.rtw_next'),
    	pager: rotate_id + '_nav',
    	pagerAnchorBuilder: function(idx, slide) {
    		// return sel string for existing anchor
    		return rotate_id + '_nav a:eq(' + (idx) + ')';
    	},
    	fx: rotate_fx
    });

    This should work! If it doesn’t, remove:

    pagerAnchorBuilder: function(idx, slide) {
    		// return sel string for existing anchor
    		return rotate_id + '_nav a:eq(' + (idx) + ')';
    	},

    as well!

Viewing 1 replies (of 1 total)
  • The topic ‘Prev/Next buttons’ is closed to new replies.