What's wrong with this Twitter code?

  • 1
  • Question
  • Updated 8 years ago
  • Answered
Morning all!*
I'm having trouble with some code from Twitter
Here's the code:
<script src="http://widgets.twimg.com/j/2/widget.j...>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 'auto',
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
However when I put it into an HTML widget, Yola hangs briefly and then gives me a message box saying: "Oops, there's something wrong with your pasted JavaScript" but this code was pasted straight from Twitter, I can't see anything wrong with it!
Callum Booth
Photo of Callum


  • 357 Posts
  • 32 Reply Likes
  • hmmm

Posted 8 years ago

  • 1
Photo of Callum


  • 357 Posts
  • 32 Reply Likes
Doesn't matter, turns out Yola was being a bit picky with the code, it works now!
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Glad to hear it's all good!