-
Author
-
February 1, 2014 at 15:11 #10445
moroccanish
Participantwhere do i put code for Facebook like button ?
February 7, 2014 at 12:07 #10655Abe
KeymasterHello, Depends where you want it to appear. For single blog posts you put it inside the files content-xxx.php after the_content line
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 7, 2014 at 23:23 #10733moroccanish
ParticipantI’d like it on home page either at top header
February 10, 2014 at 22:29 #10821Abe
KeymasterFor header you need to edit header.php and put the code from Facebook where it suits your needs
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 4, 2014 at 14:14 #11839moroccanish
Participanti got a code its in 2 parts im not sure how to do this ?
<div id=”fn-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_GB/all.js#xfbml=1&appId=1390424037864421″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script><div class=”fb-like” data-href=”https://developers.facebook.com/docs/plugins/” data-layout=”standard” data-action=”like” data-show-faces=”true” data-share=”true”></div>
March 6, 2014 at 02:58 #12069Abe
KeymasterIf you already have Facebook login enabled try putting only the second code in the content-xxx.php file
If you don;t have Facebook login enabled then the other code goes in header.php just after the body tagHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.