• Resolved leRooie

    (@lerooie)


    Hi there,
    Thanks for this plugin!

    I’m using this on one of my pages with the official-format 1. I’ve customized it a bit to fit my needs (you can see it here: sietsedamen.nl/new). The one problem I can’t figure out is how to get more space between the tweets themselves. Right now there’s no margin between the tweets which isn’t so nice if you see them scrolling. Anything I can do about that with some simple css?

    Thanks!
    Sietse

    https://ww.wp.xz.cn/plugins/rotatingtweets/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Martin Tod

    (@mpntod)

    I’m not able to check this until tomorrow, but something like

    .rotatingtweet {
       margin-bottom: 2em;
    }

    might work.

    Plugin Author Martin Tod

    (@mpntod)

    Aha! Hadn’t realised you were scrolling horizontally – but the CSS container is still .rotatingtweet

    Is looks like you’ve fixed it? What was the solution you used?

    Thread Starter leRooie

    (@lerooie)

    No I haven’t fixed it yet! I’ve tried what you’re suggesting

    .rotatingtweet {
    	margin-right: 20px;
    }

    but it just completely ignores the margin, keeping the tweets right after each other.

    Any thoughts on what this might be?

    Plugin Author Martin Tod

    (@mpntod)

    What happens if you go with this?

    .rotatingtweet {
         padding-right: 20px;
    }

    Thread Starter leRooie

    (@lerooie)

    Hmm that seems to just stretch the .rotatingtweet container, but doesn’t give me any space between the actual tweets…

    Plugin Author Martin Tod

    (@mpntod)

    There’s some code in the JavaScript that forces the size of the container.

    What happens if you switch to version 2 of the Javascript?

    Thread Starter leRooie

    (@lerooie)

    First, when I did that, it kinda screwed up the rotation (something like horizontal and vertical happening together). I fixed that by switching the rotation type to scrollLeft.

    It seems there’s a natural extra 20px margin to the right side in version 2 of Java, since the .rotatingtweets have 20px more width and there’s space between the tweets (I removed my CSS). However, I can’t make the space bigger or smaller with the CSS codes we’ve tried before. And there’s a small problem with the first tweet, which get’s pushed down about 10-20px and then pops back up when the slider starts moving. Very weird…

    Plugin Author Martin Tod

    (@mpntod)

    The first Tweet problem on version 2 of the JavaScript is the main reason I’ve not yet retired version 1!

    What happens if you put the padding into .rtw_intents and .rtw_main?

    Thread Starter leRooie

    (@lerooie)

    Ah I see!

    Yeah that last suggestion just pushes the content more in. Well, I like the lay-out as is, it would just be a bit pritier if there was space between the tweets. Maybe something for the next minor update?

    Plugin Author Martin Tod

    (@mpntod)

    I’ll see if it’s possible with a bespoke transition.

    Plugin Author Martin Tod

    (@mpntod)

    Cracked it.

    Try the development version with version 2 of the JavaScript and change the Rotation Type to scrollLeftGap (if you’re using a shortcode) or ‘Scroll Left (with gap)’ (if you’re using a widget).

    That has a gap of 100px. If you think it’s too big, let me know and we can try a smaller one.

    Thread Starter leRooie

    (@lerooie)

    Wow thanks, yeah that looks really nice! There’s one problem though, and thats that I suddenly loose the reply/favourite/retweet buttons. Their original div isn’t in the tweet anymore.

    And of course there’s still the issue of the first tweet being pressed down, but I guess that’s a minor problem…

    Plugin Author Martin Tod

    (@mpntod)

    Aha! I think that’s the change of default. If you add show_meta_reply_retweet_favorite=1 it should reappear.

    (Looks like I will have to change that option back!)

    I think there may be a way to fix the first tweet problem, but that will take a bit longer. The issue is that the Tweet resizing only happens after the Tweets start to move.

    A short term fix might be to go with something like:

    div.rotatingtweet {
       height: 95px;
    }

    Martin

    Thread Starter leRooie

    (@lerooie)

    I think it’s good to have the meta option, it’s easy to change with shortcode so that’s nice. So now it all works, thanks!

    Unfortunately, the height option didn’t work. I don’t know what’s causing this. It also didn’t work when I’m forcing it with !important, it just ignores the div position and set’s off the content a couple of pixels to the bottom…

    Plugin Author Martin Tod

    (@mpntod)

    What about:

    div.rotatingtweet.cycle-slide {
         height: 95px;
         width: 487px;
    }

    or even:

    div.rotatingtweet.cycle-slide.cycle-slide-active {
         height: 95px;
         width: 487px;
    }

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Space between Tweets’ is closed to new replies.