Embedding Tweets show up as links


#1

I maintain two fourth grade elementary blogs for my classroom. When I embed a Tweet from my feed, it only shows up as a series of links, instead of the Twitter window. My school district uses the Schoolwires corporation to host our teacher Web pages. An example of one of my posts with the imperfect Twitter embed code is located here: http://www.svsd.net/site/Default.aspx?PageType=3&DomainID=361&PageID=2007&ViewID=dedccd34-7c24-4af2-812a-33c0075398bc&FlexDataID=30923

I have another Blog set up for my students using the www.KidBlog.org Web site. I tried the same post there, with simliar results. You can view the post here: https://kidblog.org/class/room-48/posts/9kju3cp7482a8jhmt840as5ml

Actual example code:

<blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr">Releasing a Monarch today! <a href="https://twitter.com/Seneca_Valley">@Seneca_Valley</a> <a href="https://twitter.com/ECE_Room_48">@ECE_Room_48</a> <a href="https://t.co/vir5eJ2bKc">https://t.co/vir5eJ2bKc</a></p>&mdash; Mr. Fogle (@fogleem) <a href="https://twitter.com/fogleem/status/643503288655216640">September 14, 2015</a></blockquote>

Am I just unlucky enough to have access to two blogs that is not supported by the Twitter embed code? or am I making an error in the code?

I would appreciate any help. Thank you!


#2

An embedded Tweet consists of two parts: a blockquote with information about the Tweet and JavaScript needed to display the Tweet. The Tweet on your websites do not include Twitter’s widgets JavaScript.

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

#3

Weird - When I copy & paste the whole script into my (CODE) section on my blog post, everything is there, but when I save the post, the “script” code is removed. Any suggestions? I fear it’s a fault through the Schoolwires (and KidBlog) web sites respectively. I have emails into both systems as well to get to the bottom of this issue. Thanks for the heads up!


#4

Removing scripts from content editing forms is a common practice of website template companies. Scripts can do bad things and lead to unpredictable behavior; it’s simpler to strip out.


#5