Poner Compartir en Twitter y Facebook como muestro en la imagen

  • Autor Autor FabricioV
  • Fecha de inicio Fecha de inicio
FabricioV

FabricioV

Ni
Verificación en dos pasos activada
Quiero poner para compartir en twitter y facebook de la siguinte manera:

nuevaimagdp9xd.png


¿Alguien es tan amable de decirme como? Preferiblemente sin plugins, solo codigo.

Gracias anticipadas :top:
 
Este post creo que te puede ayudar: Enlace eliminado
 
Para Twitter lo pones en cualquier parte del Single.php

HTML:
<a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-text="<?php the_tittle(); ?>" data-count="horizontal" data-lang="es">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

Para Facebook igual en cualquier parte del Single.php:

HTML:
<iframe src="http://www.facebook.com/plugins/like.php?app_id=226643970703914&amp;href<?php echo urlencode(get_permalink($post->ID)); ?>&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

Si no me equivoco sería más o menos así
 
En el código de Joseph creo que habría que eliminar el show_faces=true en el código de Facebook.
 
Twitter

HTML:
 <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="Aeromental" data-lang="es">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

Facebook

HTML:
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;
	width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;">
	</iframe>
 
Atrás
Arriba