WordPress: How to add Google + share button

Need to add Google Plus One (Google +) sharing button on your WordPress website or blog? You can generate the code from Google site and add it to “single.php” to make it appear on post pages. Instead of doing this, you can also add Google + button by adding it to the content of posts and pages through “functions.php” file. Copy-paste the code below to “functions.php” file of your WordPress theme and you are done.