How To Install Wordpress?

How to install a facebook button on wordpress blog?

  • How to install a facebook like button in a wordpress blog? I'm trying to install a facebook like button in a wordpress blog, I got the two-part code from facebook. According to facebook instructions the first part of the code is to be installed inside the body tag. In the blog, the only body tag is in header.php. (There doesn't seem to be a /body anywhere.) The second part of the code can be placed anywhere you want the button to show up (according to facebook instructions). So far it hasn't worked. I suspect I'm not putting the first code in the right place. I also tried various plugins to do the same thing, none of which worked.

  • Answer:

    I have a wordpress.com blog, and I followed these instructions from their forum with success: "Go to your dashboard, then appearance on the left, then click 'widgets'. There should be one called 'Facebook Like Box' or something around that, and you can add your facebook page to it. Do not make a text widget and put the link of your facebook page." (I think I'm answering the question you're asking, but I'm not positive. My blog is http://nopostergirl.com/, in case you want to see what that option ends up looking like.)

Mrs. Buck Turgidson at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

I'm not familiar with this particular script but based on the wording of your post, you're probably messing up the second part. The first part of the code, put it under the body tag in header.php - or just before the body tag closes in footer.php. Placement probably won't matter. There are multiple php pages that compile into what you see in your browser. The code that needs to be placed "anywhere you want" needs to be placed inside the loop that displays your posts. (Do you know what that is?) Anyway, to say something's "not working" is kind of vague in situations like this so maybe you want to post a link. Or you know I'm feeling kind of punchy right now so if you hit me up with a mefimail in the next few I could respond..

phaedon

https://developers.facebook.com/docs/reference/plugins/like/ And in every version, HTML5, XFBML, IFRAME, after it generates the code it says: "Place the code for your plugin wherever you want the plugin to appear on your page." So far this hasn't worked -- but I haven't yet tried XFBML yet. I want to install it in sidebar.php if possible. I installed the google +1 there without any problem. Now I'm wondering if the theme I'm using (notepad) is somehow not compatible.

Mrs. Buck Turgidson

Have you tried the Wordpress Jetpack plugin? It's an official bonus pack with a lot of stuff that works really well, including automatically adding social buttons.

steinsaltz

Put the first block of code in header.php right after the < body > tag.

DarlingBri

Yeah, Jetpack is the way to go. It doesn't actually do the Like button iirc. It does a Share on Facebook, but it also has all the usual suspects (twitter, etc.)

idb

I use the http://wordpress.org/extend/plugins/share-this/. No fiddling with HTML/PHP/CSS and it works like a champ.

tommasz

I installed the plugin AddThis which has a widget that you can place in the sidebar. Widgets was what I needed.

Mrs. Buck Turgidson

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.