X

Google Plus One Button without js

Want to create a +1 link on your website? A +1 link can help your readers easily share your page with their Google+ followers. All you have to do is add the following code to your template file, such as single.php, just after the_content() function. The best part is that unlike a +1 button built with js, this link won’t slow down your site.

Code Snippet:

<a target="_blank" href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php the_permalink(); ?>">+1</a>

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!