WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Jetpack by WordPress.com] "Share this" displayed twice in attachment page with ca

[Resolved] [Plugin: Jetpack by WordPress.com] "Share this" displayed twice in attachment page with ca

Viewing 7 replies - 1 through 7 (of 7 total)
  • Also ran into the same problem. I found a post showing how to remove the filters, and then display the sharing buttons manually in your theme. Essentially, in your loop (probably in attachment.php) you remove the filters with:

    <?php remove_filter( 'the_content', 'sharing_display', 19 ); ?>
    <?php remove_filter( 'the_excerpt', 'sharing_display', 19 ); ?>
    <?php the_content(); ?>

    and manually add the sharing buttons to your theme with:

    <?php echo sharing_display(); ?>

    Just to clarify — I included <?php the_content(); ?> just to show where the filters should go.

    Shouldn’t the remove_filters go in the functions.php?

    Also, the code needs to be checked after every plugin update. So I’ll just wait and hope WordPress will fix the problem. At the moment, I just hid the extra “Share this” with css display: none.

    I believe you are correct… However, that will remove the buttons from the rest of your template pages as well. You can then just add in the <?php echo sharing_display(); ?> on your other template files as well, but by removing the filters on attachment.php directly, you will only be removing them from that the attachment pages.

    Plugin Contributor Tim Moore

    @tmoorewp

    We are aware of this bug and will be fixing it in a future release. Thanks for the report!

    okay – I am having this issue as well – any plugin for sharing that I try shows up twice once in the page and once in the footer – what can I do and please be very very thorough – like you’re talking to a sugar addled infant – I have no coding or customizing experience.

    HELP ME!

    http://www.the-hot-flash.com

    Plugin Author Jeremy Herve

    @jeherve

    @guidedself We fixed this issue 6 months ago, so your problem might have another source.

    However, you do not seem to be using Jetpack Sharing at the moment. Since the problem happens with multiple plugins, you might want to check your theme files for duplicate loops.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Jetpack by WordPress.com] "Share this" displayed twice in attachment page with ca’ is closed to new replies.