dharmagate 1 Report post Posted January 10, 2011 Hi I have addtoany social bookmarks plugin installed (same with sociable) and I set it to show in posts and pages. Problem is, it also shows inside my soapboxes which I am not interested in. Any idea how to not have it showing in the boxes, but only in pages? e.g. http://www.epistemologies.org/ <-- scroll down thanks in advance Share this post Link to post Share on other sites
dharmagate 1 Report post Posted January 10, 2011 addtoany plugin does allow to manually place the php call in templates: <?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) { ADDTOANY_SHARE_SAVE_KIT(); } ?> but I try to put it in single page.php without any luck, where would I have to place it so it only shows the button in pages and posts but not in boxes? Share this post Link to post Share on other sites
cmunns 16 Report post Posted January 10, 2011 You would have to place it in the template.postloop.php file or edit the plugin itself to not have it placed into custom post types. Definitely a shortcoming of the plugin to not have that option. Share this post Link to post Share on other sites
dharmagate 1 Report post Posted January 10, 2011 hi thanks that worked, took me a moment to figure out where in this huge file i had to put in the code. after doing a bit of research today, i conclude that addtoany is the best social bookmarks plugin. like most of these scripts, it provides the follow placement options: Placement Display at the bottom of posts * Display at the bottom of post excerpts Display at the bottom of posts on the front page Display at the bottom of posts in the feed Display at the bottom of pages and the manual placement option, which is pretty handy * If unchecked, be sure to place the following code in your template pages (within index.php, single.php, and/or page.php): <?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) { ADDTOANY_SHARE_SAVE_KIT(); } ? if anyone else is interested in this implemention, where I placed the code was right after pagelines_register_hook( 'pagelines_loop_after_post_content', 'theloop' ); //hook in the file suggested by cmunns thanks! Share this post Link to post Share on other sites
Kate 3 Report post Posted January 10, 2011 @Mark Thanks for posting back with the additional info Share this post Link to post Share on other sites