Jetpack by WordPress.com
Template Tag for Sharing Display (4 posts)

  1. Brad Dalton
    Posted 2 years ago #

    I know there's a filter but is there a template tag which can simply hook in the buttons regardless of the plugin settings?

    Seems the filter has to be used to modify the plugins display settings.

    Show buttons on

    I prefer to hook in the buttons without any configuration of these settings.


    I thought i could simply add this tag to a custom functions with theme specific hook and conditional tag.


  2. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years ago #

    Hi Brad!

    Have you taken a look at our tutorial on moving the sharing buttons?


    I suspect you have but just wanted to point you there in case you haven't.

    sharing_display(); is the template tag, as mentioned there, but you can't modify the display settings there; the tag will always respect the plugin settings on Settings -> Sharing.

    I'm not sure I have answered your question completely, so if you need further clarification, let me know!

  3. Brad Dalton
    Posted 2 years ago #

    Thanks Richard

    Did see that however would like a more flexible option if you ever get the chance.

    Just love hooks and conditional tags but i do understand it requires people to make this happen in the plugins code.

    Or a widget because its super easy to hook in new widgets anywhere.

  4. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years ago #

    Hi Brad!

    If you have any specific suggestions of what we can do, I encourage you to open a new issue on Github:


    You don't have to submit a pull request or code (though that would be awesome), but we do appreciate suggestions for improving Jetpack. Also, have a look here:


    You'll find a bit more info on contributing via Github.

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic