Results 1 to 3 of 3

Thread: How to add Facebook like button in WordPress blog?

  1. #1
    Join Date
    Sep 2010
    Posts
    48

    How to add Facebook like button in WordPress blog?

    Like

    The "like" is a way to share in Facebook all you find on the Internet, can be applied to all web pages and not just blogs. The ultimate goal is to see how many people liked a particular article or website in particular is something of a counter Retweets.

    Button posts by WordPress

    This time, defying all logic will not do it with a wordpress plugin, as it is too simple implementation. The first thing we have to do is go to the plugin page on Facebook, select the options and generate the code.

  2. #2
    Join Date
    Sep 2010
    Posts
    48

    Re: How to add Facebook like button in WordPress blog?

    As we can see in the image:


    • If you specify a URL, it will be static. For our blog, we leave it blank.
    • Standard option is recommended. It's a matter of selection (taste).
    • Show faces off, so do not overload the page.
    • Width according to where you will place on our blog.
    • Word to use like (like), or whether they recommend (recommend).
    • The source is left are the same or if retailers choose it.
    • Light color (light) or dark (dark).
    • You see, most are style options are chosen according to their taste to match your blog / page.
    • Finally, code is generated.
    Of all the options the most important thing is to leave the URL blank, choose the word like to be more popular and an appropriate width.

  3. #3
    Join Date
    Sep 2010
    Posts
    48

    Re: How to add Facebook like button in WordPress blog?

    Once generated the code, copy the iFrame says because the other requires a special library of Facebook and it is our intention to choose the most complicated way. You will have to change the coding to automatically get the url of the current post. To get the url of your posts will add a php code permalink. The final code would be something like this:
    Code:
    <Iframe src = "http://www.facebook.com/plugins/like.php?href = <? Php the_permalink ();?> 
    & Layout = standard & show_faces = false & width = 450 & action = like 
    & ColorScheme = light & height = 35 & "scrolling =" no "frameborder =" 0 "style =" 
    border: none; overflow: hidden; 
    width: 450px; 
    height: 35px; 
    "allowTransparency =" true "> </ iframe>
    If you have chosen special options to create your button, you only need to change the part after the "href" with php code and add the locale attribute in the end. Or you can simply copy the code you gave them. Then we add this code in our single.php template in the creation of the post, usually after you call the title of the post. And that's it, keep them in every post that appears to have published.

Similar Threads

  1. Help to improve my wordpress blog seo
    By Talitha in forum Technology & Internet
    Replies: 8
    Last Post: 29-06-2011, 11:06 AM
  2. How to create a blog on Wordpress
    By Antonio1 in forum Technology & Internet
    Replies: 6
    Last Post: 07-01-2010, 05:28 AM
  3. Paypal integration with wordpress blog
    By Feoras in forum Software Development
    Replies: 4
    Last Post: 25-08-2009, 03:13 PM
  4. Move wordpress blog to new domain
    By jeffcoo in forum Software Development
    Replies: 3
    Last Post: 21-05-2009, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,709,033,355.15506 seconds with 17 queries