Shane Jones

Co-Founder of Peadig, Freelance Developer and Consultant to Agencies in the North West

This post was written 3 years ago and therefore may not be as accurate as more recent posts.

Here is some code that allows you to have a HTML Valid Twitter follow button?

Move the code into a document.write JS function and it will all validate.

<script type="text/javascript">
/* <![CDATA[ */

document.write('<a href="https://twitter.com/shanejones" class="twitter-follow-button">Follow @shanejones</a>');

/* ]]> */
</script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>

Categories: Twitter Dev

Tags: , ,
Shane Jones

Posted by

Shane is the Co-Founder of Peadig, the WordPress framework and has gained over 40,000 downloads of his WordPress plugins. Shane also likes to tinker with API's and specialises in Facebook, Twitter, Instagram and Foursquare API. The views expressed in Shane's posts are his own and are not necessarily the views of his employers.

Leave a Reply