Data-widget-id value is blank when I create a widget



Apologies if I’m doing something really stupid, but…

I’ve just created a couple of simple timeline widgets that I want to embed on my website. I’m instructed to copy some HTML/JS code and paste it into my site. But the code has a blank data-widget-id value, and so of course the timeline doesn’t work. Either I’m stupid here, or Twitter’s widget creation tool is broken. Here’s a sample of the code from Twitter:

	<a class="twitter-timeline" href="[my hashtag]" data-widget-id="">[my hashtag] Tweets</a>
	<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);;js.src=p+"://";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>		

I’ve replaced the actual hashtag with [my hashtag] for this example. The widget isn’t working, and my assumption is that it’s not working because of the absence of the data-widget-id value, right?

Thanks in advance,


Ben, after hours of searching, I found from other users that the missing ID can be copied from the url when you are in the widget generator. Paste this between the “” in your code. This worked for me, but I’ll never get those hours back! (And yes, I agree that something is not working properly, but I’m no coder, just an educator). Phew.


Thank you. This works.


OMG that is totally insane! Thank you so much, April. How is it possible that this has not been fixed yet? Seems like every developer on earth would be pulling their hair out over this silliness.


Sorry about the bug. It is fixed now. You should see data-widget-id in the code snippet.

closed #6