Removing TweetMeme button from single posts only


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

One drawback: Removal of button leaves a small indent in first line of paragraph, probably an element:style DIV. Don't yet know how to get rid of that.


Copy this code and paste it in your HTML
  1. function no_single_tweetmeme() {
  2. if (is_single()) {
  3. ?>
  4. <style>
  5. .custom .tweetmeme_button {
  6. display:none;
  7. }
  8. </style>
  9. <?php }
  10. }
  11. add_action('thesis_hook_before_post', 'no_single_tweetmeme');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.