I'm trying to add this:
Code: Select all
<div style="width: 200px;">
<a class="twitter-timeline" href="https://twitter.com/QueensTaunton" data-widget-id="354565331076907008">Tweets by @QueensTaunton</a>
<__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>
</div>
but when I hit the apply button this pops up:
Code: Select all
Syntax Error in template "globalcontent:twitta" on line 3 "!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");" - Unexpected ",", expected one of: "}" , " " , ATTR
I've also tried adding the code as a global content block, but that gives the same response.
Am I missing something simple/obvious here?
Many thanks,
Fred