38 Comments

  1. Posted May 9, 2013 at 1:47 am | Permalink

    Great tutorial. How would you do this on a blog post with Slim Jetpack?

    Also, do you know how to remove the category listing from a Woocommerce product page?

    • jeff
      Posted February 28, 2014 at 4:06 am | Permalink

      It would greatly depend on your theme as far as how you could do this on a blog post.
      I use thematic as a theme framework and it has a lot of hooks that you could attach this to.
      What theme are you using?

  2. Andrew
    Posted May 19, 2013 at 6:59 pm | Permalink

    Awesome hints Jeff!

    Cheers.

  3. Posted May 23, 2013 at 6:23 pm | Permalink

    Thanks! I was going to use Jetpack but was hesitant to install it for just this one feature – I didn’t know about Slim Jetpack. And your function solved my 2nd problem of moving the social share directly below the product. You made my day a lot easier.

  4. Posted June 10, 2013 at 9:01 am | Permalink

    Thanks for this article I had been searching around for an hour looking for a nice way to add share buttons.

  5. Posted August 8, 2013 at 8:09 pm | Permalink

    Thanks for taking the time to share this. It’s nice to have alternatives to ShareThis, and your post saved me from having to track down the functions myself. :)

  6. Lotus
    Posted August 10, 2013 at 4:06 pm | Permalink

    I tried this but it messed up my product page layout and thumbnails. :-(

  7. Susan Nelson
    Posted September 13, 2013 at 9:39 pm | Permalink

    Thank you SO much for sharing this! It’s perfect and exactly what I was looking for.

  8. Posted September 15, 2013 at 8:17 pm | Permalink

    Hi Jeff –

    This worked like a charm – thanks so much! I’m trying to remove the sharing links from the main Shop page (as well as the various Product Category pages), but keep them on the individual Product pages – any suggestions?

    Thanks again!

    – Fred.

  9. andy
    Posted September 23, 2013 at 12:56 pm | Permalink

    What a great little function – I could not understand why teh buttons were not showing up until I read this post – as I was only using the short description in woocommerce and therefore no Product Tab so no buttons… all is workiing now and fully agree the new location of buttons is far better – thank you

    regards
    Andy

  10. Posted October 9, 2013 at 5:42 am | Permalink

    In WooCommerce Settings -> Integration tab -> ShareDaddy, there is a tickbox that does the same thing with no code.

  11. daniele
    Posted November 4, 2013 at 4:23 pm | Permalink

    Hi Jeff and thanks for this useful post!

    I wondering how to exclude certain pages from showing the social sharing button (i.e. cart, checkout, etc)… any suggestions?

    • jeff
      Posted February 19, 2014 at 12:29 am | Permalink

      If you added it using the instructions above, it wouldn’t be on your cart/checkout pages. It would only apply to product pages.

  12. Tunde
    Posted November 15, 2013 at 7:41 am | Permalink

    Thank you so much. Jut what I needed

  13. Posted November 21, 2013 at 10:54 pm | Permalink

    Wow! Been searching for this for days. Thank you!

  14. Armin
    Posted December 11, 2013 at 2:30 pm | Permalink

    Thank You !

  15. Posted February 28, 2014 at 3:59 am | Permalink

    Thanks Jeff, it worked like a charm!

    Just in case, for people using JetPack, “Show buttons on” / Products must be ticked or the social share will not show.

  16. Posted February 28, 2014 at 8:39 am | Permalink

    Hi Jeff, a plugin for do this ?

    • jeff
      Posted March 4, 2014 at 2:55 am | Permalink

      Read Gal Baras’ comment above. Evidently, this is built into WooCommerce via the ShareDaddy tab.

  17. Derek
    Posted March 3, 2014 at 9:47 pm | Permalink

    This is great, I’ve been looking for quite some time to find this solution!

    Would this work with other sharing plugins too or will this function set up solely work with jetpack?

    • jeff
      Posted March 4, 2014 at 2:54 am | Permalink

      This is pretty much limited to Jetpack, because of the function sharing_display()
      However, if your other sharing plugin had a similar function, you could replace it and probably work the same.
      What is the other plugin you are wanting to use?

      • Derek
        Posted March 4, 2014 at 3:17 pm | Permalink

        Thanks for getting back so promptly!

        I don’t know really, just something with a slightly nicer layout/icons. AddThis looked quite good…

        • jeff
          Posted March 5, 2014 at 3:00 am | Permalink

          looks like the AddThis function is addthis_social_widget()

          • Derek
            Posted March 6, 2014 at 9:35 am | Permalink

            Thanks Jeff, that almost worked, it shows the AddThis icons but only the default ones (a small bar that opens up in a new tab). It doesn’t seem to be picking up the options that are selected in the plugin.

            How do you find sharing_display function? I could try looking at some others without getting back to you each time.

            All I am looking for is something with slightly larger icons, no text and more flat looking! Not too much then :)

  18. Posted April 23, 2014 at 9:56 am | Permalink

    hi i have add the plugin all things work correct but social ico comes with the the_content()
    i want it saperate like at right side there is my description and left side the all social icon i have to display any one have idea how can i do that?……………

  19. Neil
    Posted May 12, 2014 at 7:08 pm | Permalink

    Thanks for this Jeff, just what i needed. Good work!!

  20. Posted May 27, 2014 at 6:01 pm | Permalink

    YOU ARE THE BEST MAN !!!! just saved my life LOL

  21. Posted August 11, 2014 at 1:07 pm | Permalink

    Oh my God, your code saves the day!!
    Thanks alot, Thank you very much :)
    jetpack + adding function code = Problem Solved

  22. Posted October 9, 2014 at 9:45 pm | Permalink

    Hey Jeff,

    Just what the doctor ordered. I’m using WooComm with a Twenty Twelve child theme and JetPack for a client’s webstore. The default config would only show the sharing buttons if the client filled in the Product Description field. She wanted to only use the Short Product Description field and thus the sharing buttons would not be displayed since they were tied to the product description content. Moving the hook did the trick. The buttons now display and client did not have to move all her descriptive text to the other field.

    You da man.

    • jeff
      Posted October 10, 2014 at 12:51 am | Permalink

      Awesome, glad to hear it was useful. I was worried from some previous posts about the built-in configurations for ShareDaddy that I had steered folks wrong with this.
      This method lets you put the sharing wherever you want it. I use a Thematic child theme and the thematic hooks are endless.

  23. Posted November 12, 2014 at 1:05 pm | Permalink

    Just another person popping along to say thanks for making my life easy this morning!

  24. Mara Viloria
    Posted December 3, 2014 at 5:07 pm | Permalink

    Cool! Your code is very helpful. lol! Thank you so much for sharing. :)

  25. Posted December 8, 2014 at 8:02 am | Permalink

    wow! works like a CHARM. just have to make a slight adjustment in my CSS but this did the trick and I’m amazed that the Jetpack team doesn’t throw this in as a configurable option. GET WITH IT JETPACK! lol 😉

  26. Posted December 9, 2014 at 2:45 pm | Permalink

    Jefff Rocks!! Thanks for this piece of code, simply placed in the functions.php file and got the social sharing buttons of WordPress JetPack! Saved a lot of time!!

  27. Graham
    Posted January 27, 2015 at 11:51 pm | Permalink

    always makes me feel like i must be really thick when everyone is saying how wonderful it all is and I cant even get it to show in settings even using the latest 2.9.3 i think it was
    2 hours in to getting share buttons to be by cart lets get back to it!

  28. Posted February 16, 2015 at 2:44 am | Permalink

    I just want to say thank you for this snippet of code. It works perfectly – I’m actually using it with Jetpack sharing + AffiliateWP to create referral links while sharing. It was a pain in the butt because the sharing buttons wanted to be at the bottom of the description content which in products, you want them right where the “BUY ME” is.

    Cheers!

  29. Posted September 2, 2015 at 4:21 am | Permalink

    Thanks Jeff, that saved me a lot of time!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  • Anonymous Robot