What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Twitter Share Issue

MutantWizard

New member
Greets, Im a total noob at HTM but have managed to put together a small website by editing HTML from a template. I added a couple share buttons with code from respective social sites. Facebook works but having an issue with twitter. Tweet window pops up but the expected content is not pre-populated into the tweet. Have been mulling over it moving it around for days and still the same issue. Could someone please let me know what Im doing wrong.
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="link" target="_blank" data-show-count="false" data-text="Tet to be populated" data-href="https://example.zil" data-hashtags="examplehash> <div class="title">Twitter</div> <div class="icon"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path> </svg> </div> </a> <script async defer crossorigin="anonymous" src="https://platform.twitter.com/widgets.js"></script> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fexample.zil%2F&amp;src=sdkpreparse" class="link" target="_blank"> <div class="title">Facebook</div> <div class="icon"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path> </svg> </div> </a> <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0" nonce="etHBdW1Q"></script>
 
Back
Top