WordPress.org

Support

Support » Plugins and Hacks » Sharing buttons shortcode for Jetpack » [Resolved] Double or nothing?

[Resolved] Double or nothing?

  • I tried using the built-in Photocrati sharing buttons but found them limiting as to location. The Jetpack version was better but was still very limiting. The Jetpack Sharing butttons shortcode sounded like the answer, but when I installed it and placed the [jpshare] shortcode in the page, nothing happened. Only when I checked the “Show sharing buttons” checkbox on the page edit screen that was presumably placed there when I activated the Jetpack Sharing (not the button shortcode plugin) did I get something. However, I not only got the Jetpack shortcode Facebook button, but also the standard Jetpack sharing button for Facebook. When the “Show sharing buttons” is unchecked, both disappear.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeremy Herve

    @jeherve

    You can remove the original Jetpack sharing buttons thanks to the code mentioned here:
    http://wordpress.org/support/topic/share-buttons-position-above-other-plugins?replies=7#post-3686704

    If you don’t feel comfortable editing PHP files, you can also install this small plugin:
    http://i.wpne.ws/N4ux

    I realize I didn’t thank you Jeremy. … Thanks. WCF

    Hi Jeremy – thanks for this!
    Where do I find the short code? Is it the code that I see in the editor when I look at “jetpack-sharing-butttons-shortcode/jp-sd-shortcode.php”
    thanks!!

    Hi Jeremy: sorry, I should add that I’ve installed Jetpack, Jetpack Sharing butttons shortcode, and Remove Original Jetpack sharing buttons

    All are active. I had set up the original Jetpack sharing buttons but they appeared on the bottom of my post. I wanted to put them on the top and on the Post teaser on my main WP page.

    thanks

    cbridges

    @cbridges

    I am having the same issue. I was previously running the jetpack sharing module. I downloaded the Jetpack sharing plugin. Tried to manually edit my theme function php by adding

    function jptweak_remove_share() {
    	remove_filter( 'the_content', 'sharing_display',19 );
    	remove_filter( 'the_excerpt', 'sharing_display',19 );
    }
    add_action( 'loop_end', 'jptweak_remove_share' );

    and also tried disabling the original buttons using the plugin offered above.

    When I check the “show sharing buttons” on a page, the buttons show up where I have put the shortcode in the page and at the bottom of the page. If I remove the check from “show sharing buttons” they do not show up anywhere. I am using a child theme so I don’t know if the above code is being overridden somewhere. I trying this on test pages in my site which are not available to view, so I can’t offer a link. Any suggestions.
    Thanks
    Chris

    Plugin Author Jeremy Herve

    @jeherve

    @cbridges Try using the code from that post instead:
    http://jetpack.me/2013/06/10/moving-sharing-icons/

    cbridges

    @cbridges

    Jeremy,
    Thank you for the response. Honestly editing the function.php scares me!. I tried entering this code under the funcitons.php file but got a fatal error I think because the plugin already put that code in the file.

    Now, do I have to complete step 2 on this page? http://jetpack.me/2013/06/10/moving-sharing-icons/ If so, I don’t know where to put the code for this step

    Here is a link to the site. Website

    I have it setup to show sharing buttons but I also have it in a widget on the sidebar. The buttons show up both in the sidebar widget and bottom of page. If I turn off show sharing buttons on that individual page, they don’t show up at the bottom or in the widget with the [jpshare] shortcode.
    If I change the sharing options under settings, the same thing happens.
    Thank you!

    Plugin Author Jeremy Herve

    @jeherve

    I would suggest the following:

    1. Start by removing all code you added to your theme in the past.
    2. Download the following plugin: http://i.wpne.ws/Seuj
    3. Go to Plugins > Add New > Upload, and install and activate this small plugin.
    4. Place the sharing shortcode where you want the buttons to appear in your posts: [jpshare]

    If you want the buttons to appear outside of your posts, you can do the following:

    1. Forget step 4 above.
    2. Deactivate the Jetpack Sharing butttons shortcode plugin.
    3. Add the following code in your theme, where the buttons should appear:
      <?php
      if ( function_exists( 'sharing_display' ) ) {
          sharing_display( '', true );
      }
      
      if ( class_exists( 'Jetpack_Likes' ) ) {
          $custom_likes = new Jetpack_Likes;
          echo $custom_likes->post_likes( '' );
      }
      ?>

    Save your changes, and you’ll be good to go!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Double or nothing?’ is closed to new replies.
Skip to toolbar