• K

    (@karina-1984)


    I am having trouble to put my facebook button like and google plus in the same line, under the title of my post articles and pages.

    Now looks like messy, if someone could help i would really apreciate.

    this is the page https://enviajes.cl/huayhuash/

    The codes i used where were for single.php

    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <g:plusone></g:plusone>
    
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <div class="fb-like" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div>
    
    and in content.php
    
    <div class="g-plusone" data-size="peque?o"  ... ></div>
    
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <div class="fb-like" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thanks a lot!!!!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can i do to have my facebook button like and google plus in the same line’ is closed to new replies.