Adding text to twitter (social media)
I am trying to add text to the social media button for twitter and am not having much luck. Can you point me in the right direction.
This code (not using webassist) works
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Check out Broker South in Vicksburg, MS" >Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
When I use web assist social media and add the text option it is not working.
(I would prefer to have the text show up first then the URL but would be happy to get any of it working)
Social Media code
<div id="custom-tweet-button">
<a href="https://twitter.com/share?url=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>" data-text="Check out Broker South in Vicksburg, MS" target="_blank"><img src="../webassist/social/icons/twitter.png" alt="Twitter" border="0" title="Twitter" /></a>
</div>