Dicas Web: Add a Google+ button to your posts
Add a Google+ button to your posts
Google+ is a social network from Google, and it’s becoming more popular day by day. To add a google+ button to your posts, simply open your functions.php file and paste the following code in it:
add_filter(‘the_content’, ‘wpr_google_plusone’);
function wpr_google_plusone($content) {
$content = $content.’
‘;
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);
}