Test of a custom twitter button

This is a test of a twitter custom tweet button:

Note that this code was copied into the WordPress Post Editor using the TEXT interface, not VISUAL.
If you insert this into the page using the VISUAL editor, it will be wrapped in paragraph elements automatically (and invisibly) so the button features won’t work :-)

This is what it looks like when copied into the VISUAL editor:

<a href=”https://twitter.com/share” class=”twitter-share-button” data-text=”For best results, tweet this link” data-size=”large” data-related=”inpresencellp” data-hashtags=”smallbusiness” data-dnt=”true”>Tweet</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>


Leave a Reply