Posted By

thesislab on 09/23/09


Tagged

php thesis tweetmeme


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

fabi


Removing TweetMeme button from single posts only


 / Published in: PHP
 

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.

  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  

You need to login to post a comment.