WordPress.org

Plugin Directory

jetpack

#1757 closed enhancement (invalid)

ShareDaddy feature hooks after content, not before comments

Reported by: jonathanbthornton Owned by: georgestephanis
Priority: normal Severity: normal
Plugin: jetpack Keywords: sharedaddy
Cc:

Description

I've been planning on adding "author cards" into my site, but the Sharing component of Jetpack hooks immediately between the_content(); and anything I have after it, and I don't like the idea of having an author card directly below the share features.

Is there any way we can allow several different options for where to put the sharing feature, such as before post navigation, or perhaps add a PHP function like <?php sd_display(); ?> to allow further customization? Or does something like that already exist? I appreciate any help!

Change History (3)

comment:1 georgestephanis11 months ago

  • Owner changed from tmoorewp to georgestephanis

comment:2 georgestephanis11 months ago

Howdy, Jonathan!

We add in the sharing hooks via filters with this function here:

http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/sharedaddy/sharing-service.php#L458

They're set at a priority of 19, so if you'd like to add your author block in beforehand, it would be relatively simple to do it via a filter at a higher priority (for example, 18). Something to the effect of:

https://gist.github.com/georgestephanis/5671926

Does that accomplish what you're after?

comment:3 georgestephanis11 months ago

  • Resolution set to invalid
  • Status changed from new to closed

Closing as this was more of a 'How do I' as opposed to a change in the codebase.

Note: See TracTickets for help on using tickets.