Support » Plugins » [Plugin: Add to Any Share/Save/Bookmark Button] Use in Sidebar?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Directions are located within the plugin’s settings panel located in Settings > Share/Save Buttons under Button Placement.

    Using your theme editor, place this line of code somewhere in your theme’s sidebar file: <?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?>


    Placing the code in the sidebar results in Add to Any picking up the wrong post. Any solution?

    Hmm… that’s a really good point. To be frank, the goal with this plugin is to help your visitors share and bookmark the current post, so the Share/Save button usually makes most sense within each post as opposed to the sidebar.

    If you’d like to explore sidebar functionality anyway, and assuming your sidebar is displayed on individual post pages, I would look into only displaying the button in the sidebar on individual post pages instead of the front page, categories, etc. You should be able to accomplish this by combining the aforementioned code with an is_single() condition like so:

    <?php if( is_single() && function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Add to Any Share/Save/Bookmark Button] Use in Sidebar?’ is closed to new replies.