We’ve all got “share on Facebook” or “Like” or “Tweet this” on our blog posts, but I’ve noticed a lot of people who don’t have Google+ share buttons and it’s incredibly easy to add them if you’re using WordPress.
Open up your functions.php file and add the following lines of code at the bottom of the file:
add_filter('the_content', 'wpr_google_plusone');
function wpr_google_plusone($content)
{ $content = $content.'<div><g:plusone size="tall" href="'.get_permalink().'"></g:plusone></div>'; return $content; }
add_action ('wp_enqueue_scripts','wpr_google_plusone_script');
function wpr_google_plusone_script()
{ wp_enqueue_script('google-plusone', 'https://apis.google.com/js/plusone.js', array(), null); }
Save your functions.php file and enjoy allowing people to share your posts on Google+








Recent Comments