Twitter, Facebook Button in Metabar Below Post Title
#1
Posted 06 February 2012 - 05:50 AM
#2
Posted 06 February 2012 - 09:33 AM
#3
Posted 06 February 2012 - 10:11 AM
#4
Posted 06 February 2012 - 03:50 PM
#5
Posted 06 February 2012 - 04:04 PM
#6
Posted 06 February 2012 - 04:13 PM
#7
Posted 06 February 2012 - 05:40 PM
#8
Posted 07 February 2012 - 03:16 AM
Code for buttons on homepage:
<div class="buttons-home">BUTTON CODE</div>
Code for buttons on single post page:
<div class="buttons-single">BUTTON CODE</div>
CSS for hiding homepage buttons on single post page:
body.home div.buttons-home {display: none}
CSS for hiding single post buttons on homepage:
body.SELECTORFORSINGLEPOSTHERE div.buttons-single {display: none;}
#9
Posted 07 February 2012 - 05:11 AM
add_action('pagelines_loop_before_post_content', 'after_post_title_social_h');
function after_post_title_social_h() { ?>
<div class="buttons-home" align="right" style="margin: -55px 0 0;>
<!-- Begin Twitter Button -->
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<a href="http://twitter.com/share" class="twitter-share-button"
data-url="<?php the_permalink(); ?>"
data-via="JAlLBREAKS"
data-text="<?php the_title(); ?>"
data-count="horizontal">Tweet</a>
<!-- End Twitter Button -->
<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
</div>
<?php
}
#10
Posted 07 February 2012 - 05:38 AM
add_action( 'the_post', 'after_post_title_social_front');
function after_post_title_social_front() {
if ( !is_home() )
return;
<!-- your code here -->
}
#11
Posted 07 February 2012 - 07:11 AM
http://img717.images...terbuttongb.png
add_action( 'the_post', 'after_post_title_social_front');
function after_post_title_social_front () {
if (is_home()) { ?>
<div class="buttons-home" align="right";>
<!-- Begin Twitter Button -->
<script src="http://platform.twitter.com/widgets.js"; type="text/javascript"></script>
<a href="http://twitter.com/share"; class="twitter-share-button"
data-url="<?php the_permalink(); ?>"
data-via="JAlLBREAKS"
data-text="<?php the_title(); ?>"
data-count="horizontal">Tweet</a>
<!-- End Twitter Button -->
<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
</div>
<?php }
}
#12
Posted 07 February 2012 - 01:31 PM
Can you add this to your custom css and see if this works please.
.buttons-home {position: relative;top: 9em;}
#13
Posted 07 February 2012 - 02:19 PM
#14
Posted 09 February 2012 - 07:41 AM
The alignment is improper if the post title is of single line..Same is the issues if the title exceeds to three lines or even more..











