Adicionar botões flutuantes de redes sociais ao meu blog

  • Autor Autor Darwin Fernandez
  • Data de início Data de início
Este tópico foi traduzido automaticamente do espanhol. Ver original
D

Darwin Fernandez

Olá, bom, navegando encontrei uns botões de curtir, twitter, google plus muito bonitos e queria ver se consigo adicioná-los ao meu blog; alguém sabe como ou alguém tem um tutorial de como fazer? ficaria agradecido

aqui uma imagem :

wimttt.png
 
Foi útil? Participe da conversa

Com sua conta grátis você pode responder, mandar mensagem privada ao autor e comprar com Saldo retido: o pagamento é liberado quando você recebe o combinado.

Leva 30 segundos · você volta a este tópico ao terminar
Vi nesta página : Ver Anime Online

eu consegui colocar, mas o google plus não funciona, ao clicar não acontece nada, hmm, não sei por que, algo falha; vamos ver se vocês podem me ajudar, obrigado pela ajuda .
 
Vi nesta página : Ver Anime Online

eu consegui colocar, mas o google plus não funciona, ao clicar não acontece nada, hmm, não sei por que, algo falha; vamos ver se vocês podem me ajudar, obrigado pela ajuda .

Que código você colocou, para saber o que editar
 
Que código você colocou, para saber o que editar

Coloquei este código :

Inserir CODE, HTML ou PHP:
<div class="compartir" id="sharefb">
<div style="padding: 30px 30px 0 25px;">
<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="http://platform.twitter.com/widgets/follow_button.1406859257.html#_=1407819192613&amp;id=twitter-widget-0&amp;lang=es&amp;screen_name=TuCinema24&amp;show_count=false&amp;show_screen_name=false&amp;size=m" class="twitter-follow-button twitter-follow-button" title="Twitter Follow Button" data-twttr-rendered="true" style="width: 61px; height: 20px;"></iframe>
<iframe scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:72px; height:63px" src="http://www.facebook.com/plugins/like.php?href=https://www.facebook.com/TuCinema24&amp;layout=box_count&amp;show_faces=false&amp;width=72&amp;height=63&amp;action=like&amp;font=tahoma&amp;colorscheme=light" allowtransparency="true"></iframe>
<div id="___follow_0" style="text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 99px; height: 64px; background-position: initial initial; background-repeat: initial initial;"><iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 99px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 64px;" tabindex="0" vspace="0" width="100%" id="I0_1407819192670" name="I0_1407819192670" src="https://apis.google.com/u/0/_/widget/render/follow?usegapi=1&amp;annotation=vertical-bubble&amp;height=24&amp;rel=publisher&amp;origin=http%3A%2F%2Fwww.animevk.net&amp;url=http%3A%2F%2Fplus.google.com%2F117243341745431453972&amp;gsrc=3p&amp;ic=1&amp;jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.es_419.FOxjXM9pI4Q.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAItRSTMigX4__XBdL9QHSduFWZLMx58YAg#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&amp;id=I0_1407819192670&amp;parent=http%3A%2F%2Fwww.animevk.net&amp;pfname=&amp;rpctoken=31907902" data-gapiattached="true"></iframe></div>
</div>
<div style="position: absolute;top: -14px;left: 108px;"><center><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','http://www.animevk.net/wp-content/themes/animevk/img/cerrar.png',1)"><img alt="" id="Image1" name="Image1" onmouseup="document.getElementById('sharefb').style.display='none'" src="http://www.animevk.net/wp-content/themes/animevk/img/cerrar.png" width="65" border="0" height="13"> </a></center></div>
</div>




e no CSS coloquei este :

Inserir CODE, HTML ou PHP:
.compartir {
background: url("http://www.animevk.net/wp-content/themes/animevk/img/likebg.png") no-repeat;
bottom: 1px;
float: right;
right: 3px;
position: fixed;
height: 115px;
width: 330px;
margin-bottom: 20px;
}




hmm, não sei se está certo, mas coloquei esses 2 códigos e a única coisa que não funcionava era o do google plus; não sei por que, eu clicava em seguir e não acontecia nada, vamos ver se me ajudam, por favor
 
Tente substituir isto:
<iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 99px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 64px;" tabindex="0" vspace="0" width="100%" id="I0_1407819192670" name="I0_1407819192670" src="https://apis.google.com/u/0/_/widget/render/follow?usegapi=1&amp;annotation=vertical-bubble&amp;height=24&amp;rel=publisher&amp;origin=http%3A%2F%2Fwww.animevk.net&amp;url=http%3A%2F%2Fplus.google.com%2F117243341745431453972&amp;gsrc=3p&amp;ic=1&amp;jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.es_419.FOxjXM9pI4Q.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAItRSTMigX4__XBdL9QHSduFWZLMx58YAg#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&amp;id=I0_1407819192670&amp;parent=http%3A%2F%2Fwww.animevk.net&amp;pfname=&amp;rpctoken=31907902" data-gapiattached="true"></iframe>

Inserir CODE, HTML ou PHP:
<!-- Inserta esta etiqueta donde quieras que aparezca widget. -->
<div class="g-follow" data-annotation="bubble" data-height="24" data-href="https://plus.google.com/115081025762845243709" data-rel="publisher"></div>

<!-- Inserta esta etiqueta después de la última etiqueta de widget. -->
<script type="text/javascript">
  window.___gcfg = {lang: 'es'};

  (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>

e no novo código troque:
pelo nome da sua página ou usuário
 
Tente substituir isto:


Inserir CODE, HTML ou PHP:
<!-- Inserta esta etiqueta donde quieras que aparezca widget. -->
<div class="g-follow" data-annotation="bubble" data-height="24" data-href="https://plus.google.com/115081025762845243709" data-rel="publisher"></div>

<!-- Inserta esta etiqueta después de la última etiqueta de widget. -->
<script type="text/javascript">
  window.___gcfg = {lang: 'es'};

  (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>

e no novo código troque:

pelo nome da sua página ou usuário




Pronto, já adicionei, ficou perfeito 🙂 muitíssimo obrigado; o código que adicionei no final ficou assim :

Inserir CODE, HTML ou PHP:
<div class="compartir" id="sharefb">
<div style="padding: 30px 30px 0 25px;">
<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="http://platform.twitter.com/widgets/follow_button.1406859257.html#_=1407819192613&amp;id=twitter-widget-0&amp;lang=es&amp;screen_name=TuCinema24&amp;show_count=false&amp;show_screen_name=false&amp;size=m" class="twitter-follow-button twitter-follow-button" title="Twitter Follow Button" data-twttr-rendered="true" style="width: 61px; height: 20px;"></iframe>
<iframe scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:72px; height:63px" src="http://www.facebook.com/plugins/like.php?href=https://www.facebook.com/TuCinema24&amp;layout=box_count&amp;show_faces=false&amp;width=72&amp;height=63&amp;action=like&amp;font=tahoma&amp;colorscheme=light" allowtransparency="true"></iframe>
<div id="___follow_0" style="text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 99px; height: 64px; background-position: initial initial; background-repeat: initial initial;"><!-- Inserta esta etiqueta donde quieras que aparezca Botón +1. -->
<div class="g-plusone" data-size="tall" data-href="https://plus.google.com/b/108191117707138250808/+Tucinema24/"></div>

<!-- Inserta esta etiqueta después de la última etiqueta de Botón +1. -->
<script type="text/javascript">
  window.___gcfg = {lang: 'es'};

  (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></div>
</div>
<div style="position: absolute;top: -14px;left: 108px;"><center><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','http://www.animevk.net/wp-content/themes/animevk/img/cerrar.png',1)"><img alt="" id="Image1" name="Image1" onmouseup="document.getElementById('sharefb').style.display='none'" src="http://www.animevk.net/wp-content/themes/animevk/img/cerrar.png" width="65" border="0" height="13"> </a></center></div>
</div>

assim ficou 🙂

2j18pj4.png



se houvesse algo para mover o botão do google plus um pouquinho para a direita, ficaria perfeito; obrigado, amigo, pela ajuda 🙂
 
Tente trocar:
a largura, que é de 72px, por 80px

<div class="compartir" id="sharefb">
<div style="padding: 30px 30px 0 25px;">
<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="http://platform.twitter.com/widgets/follow_button.1406859257.html#_=1407819192613&amp;id=twitter-widget-0&amp;lang=es&amp;screen_name=TuCinema24&amp;show_count=false&amp;show_screen_name=false&amp;size=m" class="twitter-follow-button twitter-follow-button" title="Twitter Follow Button" data-twttr-rendered="true" style="width: 61px; height: 20px;"></iframe>
<iframe scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:72px; height:63px" src="http://www.facebook.com/plugins/like.php?href=https://www.facebook.com/TuCinema24&amp;layout=box_count&amp;show_faces=false&amp;width=72&amp;height=63&amp;action=like&amp;font=tahoma&amp;colorscheme=light" allowtransparency="true"></iframe>
<div id="___follow_0" style="text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 99px; height: 64px; background-position: initial initial; background-repeat: initial initial;"><!-- Inserta esta etiqueta donde quieras que aparezca Botón +1. -->
<div class="g-plusone" data-size="tall" data-href="https://plus.google.com/b/108191117707138250808/+Tucinema24/"></div>

<!-- Inserta esta etiqueta después de la última etiqueta de Botón +1. -->
<script type="text/javascript">
window.___gcfg = {lang: 'es'};

(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></div>
</div>
<div style="position: absolute;top: -14px;left: 108px;"><center><a href="javascript:void(0);" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','http://www.animevk.net/wp-content/themes/animevk/img/cerrar.png',1)"><img alt="" id="Image1" name="Image1" onmouseup="document.getElementById('sharefb').style.display='none'" src="http://www.animevk.net/wp-content/themes/animevk/img/cerrar.png" width="65" border="0" height="13"> </a></center></div>
</div>
 
Última edição:
troquei a largura e o botão de Curtir do facebook desapareceu :sorrow:

2liz6.png


haverá outra maneira de fazer isso :'( ?
 
Não ficou flutuando para mim, por quê?
 
Muito bom esse botão, você deveria compartilhá-lo aqui com um tutorial xD
 
Voltar
Topo