The CSS | TwentyTwelve theme
1. Open style.css and paste this code. Then Save
/** Post Share **/
.post-share {
width: 80px; padding: 10px 0px; padding-bottom: 0; background: #ffffff; border: 1px solid #CCC;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
text-align: center;
position: fixed;
top: 255px;
left: auto;
z-index: 15;
margin-left: -120px;
}
.share-widget {
margin-bottom: 10px;
}
2. Open Single.php, and search this code #primary in TwentyTwelve theme
paste this code right after
<div class="post-share"> <div class='twitter-share share-widget'> Menarik? Sebarkan Berita Ini Lewat Socmed <a href="http://twitter.com/share" class="twitter-share-button" data-text='<?php the_title(); ?> ' data-count="vertical">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </div> <div class='facebook-share share-widget'> <iframe src="http://www.facebook.com/plugins/like.php?app_id=149766198425277&href=<?php echo urlencode(get_permalink($post->ID)); ?>&send=false&layout=box_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=90" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:60px;" allowTransparency="true"></iframe> </div> <div class='google-share share-widget'> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone size="tall"></g:plusone> </div> </div>see My PasteBin
Save, and see
0 komentar:
Post a Comment