Hello,
As you can’t see on the site but you will be able to see it with the inspector, on this page, I’ve embedded 2 twitter things, using the code they provide.
1st integration : under the grey image, I’ve put the code to integrate a specific tweet.
<blockquote class="twitter-tweet" lang="fr"><p lang="en" dir="ltr">For my French friends. <a href="https://twitter.com/hashtag/pleonasmes?src=hash">#pleonasmes</a> <a href="http://t.co/WLvWDNf8WJ">http://t.co/WLvWDNf8WJ</a></p>— Arnaud ADAM (@ArnaudADAM) <a href="https://twitter.com/ArnaudADAM/status/654188624083329024">14 Octobre 2015</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
2nd integration : bottom right, under the title Twitter : it’s a list of tweets linked to a hashtag.
‘Tweets sur #GetItOnWithCharliePuth
<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>’
When I validate my page, one or the other or both disappear.
Here is the answer Twitter team provides but I don’t understand properly. As it’s a dev site, I don’t have any plugin activated.
Twitter’s answer
Twitter’s widgets JavaScript enhances content placed on your page as it’s loaded. In the case of an embedded timeline, Twitter’s JavaScript looks for a timeline link and replaces the content with a rendered widget; a single Tweet’s blockquote is replaced with a similar rendered widget.
When I view the source code of your provided URL I see <iframe>s created, both with a DOM identifier of twitter-widget-0. The script block provided for loading Twitter’s widgets JavaScript for the timeline has been escaped into CDATA by your CMS. It looks like there are some additional attempts to act on Twitter’s supplied content by your CMS, which leaves our JavaScript confused. Which plugins have you installed which may be replacing the content you supplied to the page?
Do you think it comes from the theme ? from WordPress ?
Thanks for your concern.
Attachments:
You must be
logged in to view attached files.