WordPress.org

Forums

Sharing buttons shortcode for Jetpack
[resolved] duplicate row of share buttons (6 posts)

  1. eddiebouncer
    Member
    Posted 2 years ago #

    Hi there,

    On a newly created page i add the [jpshare]-code for custom placement of the buttons, but i get a duplicated row of the buttons on the bottom of the page as well. (if i untick WP's 'show share buttons', both are removed :/)

    I did read the other topics mentioned here, but how do i prevent the duplicate entry on this particular page?

    Thanks, Ed'

    Add.:
    - We used this share-plugin on the homepage to move the row of social-buttons succesfully. (with [jpshare] and the WP-option 'show share buttons' on)
    - i tried the jp-rm-sharing plugin, but doesn't work accordingly.

    http://wordpress.org/plugins/jetpack-sharing-butttons-shortcode/

  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #

    how do i prevent the duplicate entry on this particular page?

    You can follow the instructions in this tutorial to remove the original Jetpack sharing buttons:
    http://jetpack.me/2013/06/10/moving-sharing-icons/

    Let me know if it helps.

  3. eddiebouncer
    Member
    Posted 2 years ago #

    Thanks,

    I saw that, but:
    1. where do i put the custom code in functions.php? (does it matter?)
    2. how do i insert the code in the area i want (regular text block? php plugin?)

    the jquery option feels less difficult to me but as Lebens says himself: "This is definitely a developer's solution, so it might be tricky for you to get working."

  4. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #

    where do i put the custom code in functions.php? (does it matter?)

    At the end would be a good choice.

    how do i insert the code in the area i want (regular text block? php plugin?)

    You don't need to deal with that part of the tutorial, since you're already inserting the sharing buttons with my plugin.

  5. eddiebouncer
    Member
    Posted 2 years ago #

    Sorry, this doesn't work either.

    I keep having double or nothing, any other suggestion we can try?

    Thanks again.

  6. Marius
    Member
    Posted 2 years ago #

    this works in my case in functions.php from child:

    add_action( 'init', 'custom_init', 11 );
    function custom_init(){
    
        // if sharing_display() function does not exist, return
        if( ! function_exists( 'sharing_display' ) )
            return;
    
        // remove the callback sharing_display() for the 'the_content' filter.
        remove_filter( 'the_content', 'sharing_display', 19 );
    
    }

    source:
    http://genesissnippets.com/reposition-jetpack-sharing-links-in-genesis/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sharing buttons shortcode for Jetpack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic