Docs    Facebook    Customizations

How to only display the Like Box by itself

How to show the Facebook Like Box on its own, without any posts underneath it.

Would you like to show only the Like Box from your Facebook Page, without any posts?

In this guide, we’ll show you how to create a feed that displays only the Like Box. We’ll also cover the Like Box settings and how to center it on your page. All you need is Custom Facebook Feed installed and activated on your WordPress site.

Note: These steps follow the paid version of the plugin. In the free version, you can skip the template and Load More steps, because the feed starts right after you choose a source and the Load More Button is already off.

Before you get started, make sure the plugin is installed and activated and that you have connected a Facebook Page as a source.

Here is what we will cover.

Creating a Like Box Feed

To get started, we’ll create a feed with no posts, no header, and no Load More Button. Then we’ll turn on the Like Box, the Facebook widget for your Page.

  1. In your WordPress dashboard, go to Facebook Feed » All Feeds and click Add New.
  2. Next, select Timeline as the feed type and click Next.
  3. Then choose an existing source or click Add New to connect a new Page. Once the source is set, click Next.
  4. If the plugin asks you to start with a theme, a template, or both, keep Default selected on each screen. Then click Next on each one. For more on these screens, see our guide on using Facebook feed templates and themes.
  5. In the Customize tab, open Feed Layout and find Number of Posts. Then, set both Desktop and Mobile to 0.
  6. Next, click Customize to go back. Then open Header and turn off Enable.
  7. After that, click Customize again. Now open Load More Button and turn off Enable.
  8. Finally, click Customize to go back. Then open Like Box and turn on Enable.

Once the preview shows only the Like Box, click Save. Then click Embed and either copy the shortcode or use Add to a Page or Add to a Widget. The shortcode looks like this.

[custom-facebook-feed feed=1]

Next, we’ll look at the settings that change how the Like Box looks.

Changing the Like Box Settings

All the Like Box settings are in one place.

  1. In your WordPress dashboard, go to Facebook Feed » All Feeds and click your feed’s name.
  2. In the Customize tab, open Like Box.

Here is what each setting does.

  • Enable shows or hides the Like Box.
  • Size switches between Small and Large.
  • Position places the Like Box at the Top or the Bottom of the feed. The default is Bottom. With no posts in your feed, the Like Box is the only thing shown either way.
  • Cover Photo shows or hides your Page’s banner image in the box.
  • Custom Width lets you choose how wide the box is. By default the width is set to auto. When you turn it on, a Width box appears where you enter the number of pixels.
  • Custom CTA controls the call to action button, such as Shop now or Contact.
  • Show Fans shows visitors which of their friends follow your Page.
  • Display outside scrollable area keeps the Like Box fixed in place while the posts scroll. It is off by default.

When you’re done, click Save. If you want the Like Box in the middle of your page, we’ll set that up next.

Centering the Like Box

The Like Box sits on the left side of the page by default. To center it, we’ll give it a width and then add a little CSS.

  1. In the Like Box section of your feed, turn on Custom Width and set Width to 500.
  2. Next, click Save.
  3. Then, in your WordPress dashboard, go to Appearance » Customize » Additional CSS. On a block theme, open Additional CSS in the Site Editor instead.
  4. Finally, add the following code and publish your changes.
.cff-likebox { text-align: center; }
.cff-likebox iframe { width: 500px !important; float: none; }

Note: If you want a Like Box narrower than 500 pixels, set that number in the Width box and use the same number in place of 500px in the code.

The plugin moved its own Custom CSS into WordPress’s Additional CSS, so this code goes there too.

To learn more, see our guide to using custom CSS code in our plugins. For general help with Additional CSS, see How to Easily Add Custom CSS to Your WordPress Site.

That’s it! You now know how to display only your Like Box and center it on your page. Next, you can learn how to display your Facebook feed on a page, post, or widget.

Frequently Asked Questions

Below, we’ve answered some of the most common questions about displaying the Like Box.

Why do I set Number of Posts to 0 for both Desktop and Mobile?

Desktop and Mobile are separate settings, and the Mobile number is used on small screens. Setting both to 0 makes sure no posts show at any screen size.

Can I show the Like Box for a Facebook Group?

The Like Box works with a Facebook Page. A feed that uses a Group source does not show it.

What if my feed has more than one source?

The Like Box uses the first Page in the list. To show a Like Box for another Page, create a separate feed with that Page as its only source.

Why is my Like Box missing after I turned on the GDPR setting?

When the GDPR setting limits requests to outside sites, the Like Box is disabled, because it is loaded from Facebook. See our GDPR guide for how the setting works.

Where do I put the shortcode?

You can paste it into any page, post, or widget. The Creating a Like Box Feed section above shows where to copy it.

support

Couldn’t find your answer in the docs?

Contact Support