Hi,
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="https://twitter.com/hashtag/[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.id=id;js.src=p+"://platform.twitter.com/widgets.js";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