Support » Plugins » [Plugin: Sharedaddy] How can I change the location of the share buttons

  • Is there a way to change the location the share buttons appear in your post. I want them to appear in the post footer and not under the body.

    Thanks for any suggestions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I would also like to know.

    Custom placement of share buttons: still would like to know how to do this with sharedaddy.

    I would like to know as well. I’m using the Advanced Custom Fields plugin and Sharedaddy sticks the buttons in the custom fields instead of below the post. Had to deactivate it.

    Just a note for anyone else who comes across this thread on Google.

    You can place the share buttons manually by inserting <?php echo sharing_display(); ?> into your template, but it’ll only work once.

    That means that it’ll automatically prevent the default buttons from showing if you put it above where they’d appear, but if you put it below where they’d appear, it’ll have no effect.

    To place it below, you have to explicitly kill off the automatically-inserted buttons with these lines:

    remove_filter( 'the_content', 'sharing_display',19);
    remove_filter( 'the_excerpt', 'sharing_display',19);

    Apparently, putting them in your functions.php can work but, when I tried that with a child theme, it had no effect because they got called before the add_filter lines they were supposed to undo.

    I solved that by putting them at the top of my loop-single.php instead, just under the header comment.

    (Note: That file won’t exist on all themes. See Template Hierarchy to figure out where to start tracking down the appropriate spot in themes other than Twenty Ten.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Sharedaddy] How can I change the location of the share buttons’ is closed to new replies.