Adding a twitter feed?
Posted: Sun Jun 23, 2013 11:26 am
Hi there,
I'm trying to embed twitter in a website for my friend (using the embed code taken from twitter), but when I paste the following code in the template in the <head> section, it doesn't work.
<__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>
cmsms wont let me save changes to the template and reports that there is a syntax error in the script. It works in Dreamweaver - what gives?
This link is supposed to call it or whatever.
<a class="twitter-timeline" href="https://twitter.com/MIRecordsAU" data-widget-id="348700854150377473">Tweets by @MIRecordsAU</a>
Loving CMSMS for the most part, still learning it.
thanks in advance for any help you can provide.
I'm trying to embed twitter in a website for my friend (using the embed code taken from twitter), but when I paste the following code in the template in the <head> section, it doesn't work.
<__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>
cmsms wont let me save changes to the template and reports that there is a syntax error in the script. It works in Dreamweaver - what gives?
This link is supposed to call it or whatever.
<a class="twitter-timeline" href="https://twitter.com/MIRecordsAU" data-widget-id="348700854150377473">Tweets by @MIRecordsAU</a>
Loving CMSMS for the most part, still learning it.
thanks in advance for any help you can provide.