Support » Plugin: SexyBookmarks | Upgrade to the Official Shareaholic Plugin today! » Is it possible to add share buttons outside wordpress?

  • Resolved arunschandran

    (@arunschandran)


    I have a WordPress installation. I have Shareaholic plugin working on it. I also want use share buttons for PHP pages Outside the WordPress installation.

    I Tried below code but not working

    <?php
    require(‘../wp-blog-header.php’);
    ?>
    <?php echo do_shortcode(‘[shareaholic app=”share_buttons” id=”xxxxxxxx”]’); ?>

    Is there any way to do so?

    https://wordpress.org/plugins/sexybookmarks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • devinemily_shareaholic

    (@devinemily_shareaholic)

    Hi @arunschandran – Can you please post a link to your site and let me know what version of the plugin you are using?

    Thank you!
    Devin

    Plugin Author Shareaholic

    (@shareaholic)

    @arunschandran

    Instead of the following code: (which is WordPress specific)

    <?php echo do_shortcode('[shareaholic app="share_buttons" id="xxxxxxxx"]'); ?>

    You should use:

    <div class='shareaholic-canvas' data-app='share_buttons' data-app-id='xxxxxxxx'></div>

    This assumes you have included shareaholic.js on the page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to add share buttons outside wordpress?’ is closed to new replies.