• Hi!

    This was exactly what I was looking for.

    I didn’t matter even if this plugin didn’t work. (In fact plugin just made my whole site disappear until i switched it off. Heh. ?? )

    I opened up the plugin’s code (which is really just few lines) and took out what I needed. Following lines I added to my own custom theme file ‘shorcodes.php’, which I call in the head of each page, and yes, it works. ??

    function tweakjp_sd_shortcode() {
        if ( function_exists( 'sharing_display' ) ) {
            return '
                <div class="shortcoded-share-buttons">'.
                     sharing_display().'
                </div>
            ';
        }
    } add_shortcode( 'jpshare', 'tweakjp_sd_shortcode' );

    So thanks! You made me saving a lot of trouble to find out how to call the Jetpack share buttons otherwise. ??

  • The topic ‘Didn't work but was easy to make working’ is closed to new replies.