Twitter widget no longer displaying in website


#1

Hello, at my website http://school.st-vincentdepaul.org/, my Twitter timeline no longer displays. Currently I have the script (which I generated from the Twitter widget generator) copied into two locations on the page: in the right-most column beneath the image slider, and in a container beneath that (I wanted to see if the problem had anything to do with the column width. All that displays in both locations is “Tweets by @STVDPSchool.”

Up until early August, this timeline displayed just fine. What happened, and what changes do I need to make? Thanks.


#2

Hi Ted,

Checking your website it appears that your references to our widgets script are corrupted, I see the following error in the console:

``

Your embed codes appear to have been HTML-escaped inside of your source, which is preventing the script from executing:

<script>// <!&#091;CDATA&#091;
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)&#091;0&#093;,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");
// &#093;&#093;></script></p>

The cause of this is likely in your own website, perhaps it’s double-escaping the code as a security measure. You could try changing the <script> portion from the inline block we provide by default to this:

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

Note that you only need to include this once on your page for all widgets: The default code ensures that the tag doesn’t get duplicated but this way you should just put the code in your page footer and remove all other Twitter <script> tags.

Let me know how you get on!

Ben


#3