Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

Reply To: Help with the "grid" portfolio

New Front EN Support Forums Ikebana Theme Support Help with the "grid" portfolio Reply To: Help with the "grid" portfolio

#6957
Tinchox17
Member

thanks
i want to add a share facebook button
but all plugin show it in all pages, like images, calendar all over the blog

in facebook developer there is one but is a code

and say this

Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

<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/en_US/sdk.js#xfbml=1&version=v2.4″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

Place the code for your plugin wherever you want the plugin to appear on your page.

<div class=”fb-share-button” data-href=”https://developers.facebook.com/docs/plugins/&#8221; data-layout=”button_count”></div>

any ideas ?