Make sure you put the new CSS in a file called rotatingtweets.css in the /wp-content/uploads/ directory and it won’t get overwritten every time the plug-in is updated.
The ‘normal’ approach to solving this is:
div.widget_rotatingtweets_widget, div.rotatingtweet, div.widget_rotatingtweets_widget div.widget-title {
max-width: 123px;
}
where you replace 123 with the right value for your design – probably something like 192px in your case!
Thanks Martin, but that’s Greek to me. I seem to have resolved the issue:
Changed:
”url_length’ => 29,’
and
‘$defaulturllength = 29;’
To:
”url_length’ => 20,’
and
‘$defaulturllength = 20;’
If you’re only using short-code, you would only normally need
[rotatingtweets screen_name='your_twitter' url_length='29']
or are you using a widget?
Hi Martin, I’m using the widget and editing rotatingtweets/rotatingtweets.php
OK. I’ll look at building it in to the widget as well.
Martin
Hi Martin
just to let you know the width of the widget still changes every time you update the code and I have to manually change the url length back to 20 as 29 is too long for Birdtips 3 column format.
Thanks for an otherwise tops plugin.
Karen
Apologies. I’ll build this into the next version…
Although might insertion of a soft hyphen help as an alternative?
Martin
Thanks Martin. I’d rather alter the plugin once than alter every single url I tweet. Some of them are automatically tweeted anyway. Time saving is essential – as I’m sure you must know!
Thanks again.
Karen
You wouldn’t need to alter the tweets. The idea would be that Rotating Tweets would insert soft hyphens in the URL so that it if was too long, it would fold over to a new line.
Martin
Yes, I guess that is an option for the backend. Sorry I’m not a programmer, but I thought that’s what the character limit did anyway? As far as what is visible to the reader, the url is hardly ever shown in its entirety. Sorry I can’t give you valuable feedback on that.
Hi Martin – Not sure if this is the same as with previous posters, but after upgrading to 1.5.0 (and then 1.5.1 today), the width of the widget seems to resize logarithmically when I resize the browser – especially noticeable in Chrome on the Mac. We’re using a simple shortcode on the home page Any pointers to where the issue may be? Any way I can re-install 1.4.7?
(See it at http://cnote.nl )
Thanks
– Bob
Hi Bob
Which version of the script have you chosen on the settings page?
Martin
The wrong one, obviously š
All set – thanks!
Hi Martin
I’m still battling with width size. Each time I upgrade your plugin I have to change ‘url_length’ => 29 to ‘url_length’ => 20 so that the tweets wrap within the column width. Is there somehow I can save this setting in a template file perhaps?
Thanks!
Karen
Hi Karen,
Sorry about that.
Are you using a widget or a shortcode?
Martin