Twitter feed widget html code


#1

I would like to add my twitter feed but the html code created by the widget has javascript in it and my site does not accept java. Is there a way to add it without java?


#2

The JavaScript file for the Twitter widget only needs to be present in a page once—every widget, multiple Tweets and timelines will all be rendered from the same widget file. If your CMS won’t let you paste <script> tags into your content for security reasons that’s OK, but you need to include the script somewhere else in your template. The script you need to add is simply:

<script async src="https://platform.twitter.com/widgets.js"></script>

Then you can just paste the regular timeline or Tweet embed code, but ignore the <script> part.

Hope that helps,

Ben


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.