Offiziellen Twitter Button in Wordpress einfügen


/ Published in: JavaScript
Save to your folder(s)

Code in single.php, loop.php, index.php, page.php, category.php, und archive.php , innerhalb des loops einfügen.


Copy this code and paste it in your HTML
  1. <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
  2. <a href="http://twitter.com/share" class="twitter-share-button"
  3. data-url="<?php the_permalink(); ?>"
  4. data-via="wpbeginner"
  5. data-text="<?php the_title(); ?>"
  6. data-related="syedbalkhi:Founder of WPBeginner"
  7. data-count="vertical">Tweet</a>

URL: http://www.wpbeginner.com/wp-tutorials/how-to-add-twitters-official-tweet-button-in-wordpress/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.