My Simple Social Bookmarks plugin is incredibly powerful. However, if you donβt have coding skillsΒ or access to your theme files then adding it is rather difficult.
If you’re in this situation, then here’s the solution (in a future release of the plugin I’ll automate this)…
Open up the functions.php file in your theme folder and add the following lines…
// Add to Post function add_ssb_to_post( $content ) { // If a single post or page, add Social Bookmarks if ( ( is_single() ) or ( is_page() ) ) { if ( function_exists( 'simple_social_bookmarks' ) ) { // If URL Shortener plugin exists generate a short URL for the page if ( function_exists( 'simple_url_shortener' ) ) { $shorturl = simple_url_shortener( '', 'service=bit.ly' ); } else { $shorturl = ''; } // Add Social Bookmarks to bottom of post $content .= '<p align="center">' . simple_social_bookmarks( '', $shorturl ,'', '' ) . "</p>n"; } } return $content; } add_action( 'the_content', 'add_ssb_to_post' );
I know it seems quite long but it has assorted checks to ensure that the plugin is active PLUS it will integrate Simple URL Shortener in as well. You’ll need to change the Simple URL Shortener parameters as appropriate (it’s currently set to use bit.ly) as well as Simple Social Bookmarks. I’ve also set up some CSS to centre the resulting bookmarks on the screen.
When done, you should have your social bookmarks added to the bottom of every post and page after the content.
Talk to me!