Moin,
ich versuche gerade eine Sharebar in meinem Artikel zu verankern samt Artikelbewertung. Nur stehen die Sharebuttons rechts und nicht links und die Bewertung links anstatt rechts. Die Bewertung läuft mittels plugin Wp_PostRatings.
Die CSS sieht wie folgt aus:
PHP
.share_bar{
background:#f2f2f2; border:1px solid #e2e2e2;
margin:0 10px 20px 0;
padding:8px 12px 10px;
display:block;
}
.share_bar .fb-share-button {
display: block;
margin: 6px 0 0 225px;
}
.post-ratings {
display: block;
float: right;
font-size: 0.9em;
margin: -26px 0 0;
text-align: center;
width: 150px;
}
.post-ratings img {
min-height: 0px;
margin:2px 0 0 0;}
.post-ratings span{
display: block;
margin: 0 0 0 5px;
}
Alles anzeigen
Und dies habe ich in die Single.php eingefügt:
PHP
<!-- Tag and share bar -->
<div class="share_bar">
<span class="entry-google"><g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone></span>
<span class="entry-twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-text="<?php the_title(); ?>" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></span>
<span class="entry-facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&layout=button_count&show_faces=false&width=80&action=like&font=lucida+grande&colorscheme=light" allowtransparency="true" style="border: medium none; overflow: hidden; width: 80px; height: 21px;" frameborder="0" scrolling="no"></iframe></span>
<span class="fb-share-button"
<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php" share_url="<?php the_permalink();?>&t=<?php the_title(); ?>">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</span>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div>
<!-- /Tag and share bar -->
Alles anzeigen
Und hier noch mal zu Veranschaulichung, damit ihr wisst, was ich meine ;)
Ich hoffe es kann mir jemand helfen :)
http://krankenversicherung-news.net/gkv-medikament…-gestiegen-7130