Error in Twitter Follow Link
Posted: Wed Mar 19, 2014 4:47 pm
Can anyone point me in the right direction please?
I'm trying to add a follow me on twitter link to my site.
I am pasting the html from twitter into a brand new page on its own at the moment but I keep getting an error.
The code I am pasting is as follows:
That is all that is on the page at the moment.
When I try to open the page I get the following:
Any pointers greatly appreciated.
Regards
Clive
I'm trying to add a follow me on twitter link to my site.
I am pasting the html from twitter into a brand new page on its own at the moment but I keep getting an error.
The code I am pasting is as follows:
Code: Select all
<a href="https://twitter.com/CRSounds" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @CRSounds</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>When I try to open the page I get the following:
Code: Select all
Error: at line 3 in file /home/crsou730/public_html/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:Code: Select all
Syntax error in template "content:content_en" 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');" unknown tag "var"Regards
Clive