WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[resolved] How to Add Share Buttons to Custom Template? (6 posts)

  1. maxpedition
    Member
    Posted 3 months ago #

    Upon activating the plug-in, how can I have the share buttons to appear on a custom template.php file? I am trying to get the buttons to show up on a flip book I made using a flip book plugin but even making sure the checkboxes are checked for the buttons, they do not appear. Do I need to go into the php file to add code? help!

  2. micropat
    Member
    Plugin Author

    Posted 3 months ago #

    Yep, that's one way to do it.

    <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>

    From the sharing plugin's FAQ: https://wordpress.org/plugins/add-to-any/faq/

  3. maxpedition
    Member
    Posted 3 months ago #

    This didn't work for me. I added that code to the template.php file but the buttons still did not show up. Is it necessary to deactivate and re-activate the plugin? I found that when doing so, the php file reverted back to the original and added code for buttons was deleted.

  4. micropat
    Member
    Plugin Author

    Posted 3 months ago #

    This really depends on the theme and the plugin. Which are you using exactly?

    The AddToAny PHP code above simply outputs the button wherever it's placed (or it can be configured to return a string of code for later use).

    Check with your flip book plugin's author for where best to place the code (if the code is necessary). The author might recommend checking with your theme's author too.

  5. maxpedition
    Member
    Posted 3 months ago #

    I am using a very popular flip-book plugin called Diamond Fliipbook by flashmaniac.
    http://codecanyon.net/item/diamond-flipbook-jquerypluginwordpress/5823062

    I've tried adding that line of code to the plugin's php file in various spots but it still fails to show up. I've contacted the author back and forth but can't figure out what he's trying to tell me due to English most likely not being his second language judging from his emails.

    My flipbook is here... I simply want to the share buttons to appear on the bottom bar or on the left hand side of the screen.
    http://maxpeditioninaction.com/?page_id=1993#undercover/Page1

    Let me know if you have any insight as in why the buttons would fail to show even after adding the code.. thank you!

  6. micropat
    Member
    Plugin Author

    Posted 3 months ago #

    You're in a tough spot with that plugin's support.

    Right now it looks like AddToAny isn't enabled on your site. Make sure AddToAny is enabled and the default share buttons are appearing under posts as they do by default.

    A workaround to make these pages shareable would be to turn on AddToAny's new Floating share bars in Settings > AddToAny > Floating. It'll be enabled across your site, and it's a good way to ensure all of your content is shareable, including your flip-book pages.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.