Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Here is the HTML that makes the buttons appear-->
- <ul id="social-buttons-wrap">
- <li><div class="fb-like" data-href="http://my-site.com" data-send="false" data-width="225" data-show-faces="false"></div></li>
- <li><a class="twitter-share-button" data-count="horizontal">Tweet</a></li>
- <li><div class="g-plusone" data-size="medium"></div></li>
- <!--And the following is in the footer, right before ?php wp_footer();?>-->
- <script>
- (function(w, d, s) {
- function go(){
- var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) {
- if (d.getElementById(id)) {return;}
- js = d.createElement(s); js.src = url; js.id = id;
- fjs.parentNode.insertBefore(js, fjs);
- };
- load('//connect.facebook.net/en_US/all.js#xfbml=1&appId=315117041956670', 'fbjssdk');
- load('https://apis.google.com/js/plusone.js', 'gplus1js');
- load('//platform.twitter.com/widgets.js', 'tweetjs');
- }
- if (w.addEventListener) { w.addEventListener("load", go, false); }
- else if (w.attachEvent) { w.attachEvent("onload",go); }
- }(window, document, 'script'));
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement