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

  1. maxpedition
    Posted 1 year 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
    Plugin Author

    Posted 1 year 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
    Posted 1 year 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
    Plugin Author

    Posted 1 year 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
    Posted 1 year ago #

    I am using a very popular flip-book plugin called Diamond Fliipbook by flashmaniac.

    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.

    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
    Plugin Author

    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddToAny Share Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.