Google +1 Button Code
Google’s +1 Button
Part 1: Google’s +1 code:
<!-- Place this tag where you want the +1 button to render. --> <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300"></div> <!-- Place this tag after the last +1 button tag. --> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>
Part 2: How to Add the Google +1 Button to your WordPress – WPBeginner