Additional settings for the Profile Widget?

93 views
Skip to first unread message

RogersBlant

unread,
Jul 22, 2011, 4:52:39 AM7/22/11
to Twitter Development Talk
Morning, all - first post on here!

This is posibly a non-starter, but let's see...

In addition to my twitter account, I also run a blogspot blog, at
http://rogersblant.blogspot.com/ . I use the Profile Widget to enable
my twitters to be retweeted on my blog. The colours customisation is
fine, as is the addition of the scrollbar and automatic resizing of
the widget.

However, the problem I have is that the font and the size of the font,
are neither in keeping with, or match, my blog. I have tried using css
to change both, but to no success.

Given that the scripting supplied by Twitter utilises CSS within the
script, I find that result to be surprising; I am therefore wondering
if the widget can be modified either locally by me using CSS, or by
Twitter adding more settings, to allow for different font families and
sizes to be used?
if anyone knows how this might be achieved locally by me, then I'm all
ears; if not, then I suspect it'll be down to Twitter, as and when
(if) they decide that it's a feature worth adding!

Cheers for any help,

Roger

Tim Meadowcroft

unread,
Jul 25, 2011, 5:12:29 PM7/25/11
to twitter-deve...@googlegroups.com

I tweak the styles of the widgets slightly using CSS, relying on the fact that more specific rules override general rules, so, for example, I normally want to render the profile widget with a scrollbar, but sometimes (after rendering) I want to dynamically turn the inner scrollbar off, so I have this

  .myScrollingContainer .twtr-timeline {
     height: auto !important;
  }

and then I know that if I add the appropriate class to my div that contains the widget, then the scrollbar gets removed (trivial example, but there you go).

If all else fails, the top of the widget.js code says

   * Author: Dustin Diaz (dus...@twitter.com)
   * V 2.2.5 Twitter search/profile/faves/list widget
   * For full documented source see http://twitter.com/javascripts/widgets/widget.js
   * Hosting and modifications of the original source IS allowed.

so not only can you get the full documented un-minified code, but you can always tweak it and host that version yourself if you really want.

--
T

Reply all
Reply to author
Forward
Message has been deleted
0 new messages