|

How to add a share on Google+ link to your WordPress Theme

add share on google link to your Wordpress theme

How to add a share on Google+ link to your WordPress Theme without Plugins. Simply add the code below where you want to display the Share link for Google Plus. Search in you post page wich is: single.php in yout WordPress theme folder and add the code where you want to display the share on google link for your posts.

<div class="googleplus">
<a href="https://plus.google.com/share?url=<?php the_permalink() ?>" title="Share this article on Google+" target="_blank">Google+</a>
</div>
/*You can Add some CSS style to your Google Plus Share Link and will look like Button without any scripts or images*/
.gogoleplus{
    background: none repeat scroll 0 0 #e15449;
    border: 1px solid #000;
    border-radius: 1px;
    color: #fff;
    font: lighter 14px/33px "Arial",sans-serif;
    padding: 7px 20px;
    text-align: center;
    text-decoration: none;
}

The sample above will display a link to share your post like the Share Button Below if you add the css to the link like in the example above.

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *