简体   繁体   English

从Facebook网站将Facebook按钮添加到WordPress网站

[英]Adding Facebook Buttons from the Facebook website on to a WordPress Site

I am trying to add a Facebook Like button from the Facebook page. 我正在尝试从Facebook页面添加Facebook Like按钮。 When I create the code to be added into my posts and pages, there are only two ways to do that. 当我创建要添加到帖子和页面中的代码时,只有两种方法可以执行此操作。 One is by adding some java script into the body tag and then placing the rest of the code where I want to display the buttons. 一种是通过在body标签中添加一些Java脚本,然后将其余代码放置在我要显示按钮的位置。 Since I am using a WordPress template, I do not see anywhere where I am able to place any code into the body tag. 由于我使用的是WordPress模板,因此我看不到能够将任何代码放入body标签的任何地方。 The other option is placing an iFrame code into the page or post where I want the buttons to appear. 另一个选择是将iFrame代码放入我希望按钮出现的页面或帖子中。 Neither of these options work, so not sure what to do from here. 这些选项都不起作用,因此不确定从这里开始做什么。 Can anyone explain this in easy terms? 谁能用简单的方式解释一下? Thank you 谢谢

From your post it sounds like you're not a coder - which is fine! 从您的帖子中听起来您不是编码员-很好! :-) But in that case you might find it easier to use any of the wordpress plugins for adding an FB like. :-)但是在这种情况下,您可能会发现使用任何wordpress插件添加FB之类的内容都更容易。 For example: https://wordpress.org/plugins/facebook-button-plugin/ 例如: https : //wordpress.org/plugins/facebook-button-plugin/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM