solved Embedding Twitter timeline widget on site

BeatRelease
BeatRelease
@beatrelease
7 years ago
43 posts
Hey guys, I can't embed the Twitter widget on my site. I'm using this page to get the embed code: https://dev.twitter.com/web/overview

Here's an example of the code:

<a class="twitter-timeline" href="https://twitter.com/TwitterDev">Tweets by TwitterDev</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

The only thing that shows up is a button that says "Tweets by TwitterDev" but I don't see the timeline. I tried the literal tags but had no luck.

Anyone got this to work?
updated by @beatrelease: 04/12/17 03:24:36AM
michael
@michael
7 years ago
7,744 posts
no problems with that working here. I put it into a Site Builder 'Template Code' widget and it showed up.

Worked better than expected actually. If you put it in a 12 col location it expands the full page, if you put it in a 3 col location, it still looks good.

It wont work if you paste it in a blog because the SCRIPT would be stripped. Too much of a security risk to let any users throw scripts into your site.
BeatRelease
BeatRelease
@beatrelease
7 years ago
43 posts
michael:
no problems with that working here. I put it into a Site Builder 'Template Code' widget and it showed up.

Worked better than expected actually. If you put it in a 12 col location it expands the full page, if you put it in a 3 col location, it still looks good.

It wont work if you paste it in a blog because the SCRIPT would be stripped. Too much of a security risk to let any users throw scripts into your site.


It works when I add the code through 'template code' but doesn't show up when I add through FTP on my index page.
michael
@michael
7 years ago
7,744 posts
should be the same. FTP on the index page is also template code can I see the URL?
BeatRelease
BeatRelease
@beatrelease
7 years ago
43 posts
for some reason it's working for me now lol. Thanks for the help @michael
michael
@michael
7 years ago
7,744 posts
nice. :)

Tags