• I would like to have Facebook Like and Google+ Button on top of each page, post and category.

    I tried to use some free plugins, and I just tried to add some simple codes like the G+ code:

    <!-- Place this tag where you want the +1 button to render. -->
    <div class="g-plusone"></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>

    However, when I add the code to page.php the layout get’s screwed. I am getting a huge gap (white empty space, field) right after the Title.

    What can I do in order to handle that issue ?

    Thank you so much !!!

Viewing 1 replies (of 1 total)
  • Thread Starter kreativito

    (@kreativito)

    I also have similar problems when I try to add the G+ Badge as a Widget on my sidebar.

    <!-- Place this tag where you want the widget to render. -->
    <div class="g-page" data-width="180" data-href="//plus.google.com/u/0/104044814792399011189" data-theme="dark" data-rel="publisher"></div>
    
    <!-- Place this tag after the last widget 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>

    The display is not correct. Can’t tell why.

Viewing 1 replies (of 1 total)
  • The topic ‘Social Like Buttons on Top of Pages, Posts and Categories ?’ is closed to new replies.