Cum se pune Facebook social plugin pe bloguri?

Daca tot l-am pus pe Realitatea mai devreme, sa-l pun si pe blog si sa va zic cum se face, astfel incat sa va puneti si voi pe bloguri butoanele de like si box-ul de Facebook social plugin.

In header.php  se pune codul asta inainte de </head>:

<meta property="og:title" content="<?php the_title(); ?>" />
<meta property="og:site_name" content="Piticu.ro" /> 
<meta property="og:url" content="<?php the_permalink() ?>" />

Se editeaza tema, in single.php sau main index template (index.php) …

la finalul articolului sau unde doriti voi, se pune codul asta:

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>";layout=standard;show_faces=false;width=450;action=like;colorscheme=light"
 width="450"
 height="25"
 scrolling="no"
frameborder="0"
allowtransparency="true">
</iframe>

Apoi in sidebar sau unde doriti sa apara box-ul de ce fac prietenii vostri, se pune codul asta:

<iframe src="http://www.facebook.com/plugins/activity.php?site=www.piticu.ro&amp;width=295&amp;height=400&amp;header=false&amp;colorscheme=light&amp;font=arial&amp;border_color=%23DADADA" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:295px; height:400px"></iframe>

Cristi Dorombach

Cristi Dorombach is a Romanian tech voice who thrives where curiosity meets communication. Through dcristi.ro, his YouTube channel, and contributions to leading business media, he breaks down complex trends into sharp, accessible stories. Whether unpacking the latest gadget, dissecting a market shift, or spotlighting local innovation, Cristi delivers it with clarity, wit, and a knack for sparking conversation. His audience knows him not just as a commentator, but as a connector — someone who sees the bigger picture and isn’t afraid to zoom in on the details that matter.

Leave a Reply