I have the solution to this frustrating problem, and I have integrated it successfully in Twitterâs bootstrap (the irony?).
Step 1:
Download Twitterâs widget js file and put it in "YOUR_LOCAL_PATH/js"
Step 2:
Modifying the widget call script as so:
You should see that I have deleted the âpâ variable and the protocol declaration and Iâm pointing towards a local copy of Twitterâs widget js file.
Step 3:
Use something like http://jsbeautifier.org/ to make the code inside the widgets.js file readable. After that copy that code inside "YOUR_LOCAL_PATH/js/twitter.widgets.js"
Step 4.1 : Look for and modify like I suggested below:
dimensions: {
DEFAULT_HEIGHT: â600â,
DEFAULT_WIDTH: â100â, // modify this to be 100 - like 100%
NARROW_WIDTH: â100â, // modify this to be 100 - like 100%
MIN_WIDTH: â100â, // modify this to be 100 - like 100%
MIN_HEIGHT: â200â,
WIDE_MEDIA_PADDING: 81,
NARROW_MEDIA_PADDING: 16,
WIDE_MEDIA_PADDING_CL: 60,
NARROW_MEDIA_PADDING_CL: 12 },
Step 4.2 : Look for and modify like I suggested below:
From this: .frame.style.minWidth = s.dimensions.MIN_WIDTH + âpxâ to this
.frame.style.minWidth = s.dimensions.MIN_WIDTH + â%â
Step 5. Congratulations, you now have a responsive twitter widget! If they release new versions of the widget, just remake the steps I suggested!