WordPress GuideBuild → Facebook Like

How to add a Facebook Like button in WordPress

Woman Coding on Computer

Want more likes, shares, and social visibility for your WordPress site? Adding a Facebook Like button is one of the easiest ways to boost engagement—without needing users to leave your website. Whether you’re a blogger, a business owner, or running an Ecommerce store, a well-placed Like button can turn casual visitors into brand advocates.

Let’s walk through the best ways to add a Facebook Like button to your WordPress site—using code, plugins, or page builders.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What is the Facebook Like button and why use it?

The Facebook Like button lets visitors interact with your content or brand directly from your site. A single click adds a Like to their Facebook profile and may appear in their friends’ feeds, giving your content organic visibility.

Adding one to your site helps:

You can use a Like button for a specific URL (like a blog post or product) or for your Facebook Page.

Understanding the types of Facebook Like buttons

Before adding anything, it helps to know the different formats available:

Choose based on what looks best for your site and where your traffic comes from.

Method 1: Add the Facebook Like button manually using code

This method gives you full control over placement and customization. You’ll use Facebook’s official Like button generator and paste the code into your site.

Step 1: Get the Facebook Like button code

Step 2: Add the code to WordPress

You can place the code almost anywhere:

Optional: Load the Facebook SDK

Some Like button styles require the Facebook JavaScript SDK. To include it:

Avoid loading the SDK multiple times—some themes or plugins may already include it.

Method 2: Use a plugin to add the Like button easily

Not comfortable editing code? Plugins make it easy to add Like buttons without writing a line.

Best plugins to add Facebook Like buttons

Here are top-rated plugins that support Facebook Like functionality:

How to install and set up a Like button plugin

Most plugins don’t require the Facebook SDK, which helps keep things lightweight.

Method 3: Use a page builder with social button widgets

If you’re already using a page builder like Elementor, adding a Like button is fast and flexible.

Adding a Facebook Like button with Elementor

Other page builder options

Where should you display the Facebook Like button?

Strategic placement is key. Here are common locations that perform well:

Use Google Analytics or heatmaps to test what works best for your audience.

Troubleshooting Facebook Like button issues

If the button doesn’t show up or work properly, here are quick fixes:

Bonus: How to track Facebook Likes with analytics

Want to measure how your Like button is performing?

Tracking helps you understand where to place the button and what kind of content earns the most engagement.

Additional resources

How to build a WordPress site →

A complete beginner’s guide that covers 9 key steps to a successful launch

Website builders vs. WordPress →

With website builders and WordPress at your disposal, you don’t need to expend your energy or savings to build a website that suits your brand.

How to use WordPress Gutenberg blocks →

A complete beginner’s guide to Gutenberg blocks