How Do I Add a Facebook Like Button to My WordPress Website?

Adding a Facebook like button to your WordPress website is simple. First, go to the Facebook website and create a new page. Once you have created the page, click on the “Like” button in the top left corner of the page.

Next, copy the HTML code from the Facebook like button and paste it into your WordPress website’s header. Finally, add the following line of code to your WordPress website’s functions.php file:.

add_action(‘init’, ‘facebook_like’);

That’s it! Your Facebook like button is now installed on your WordPress website.