Dynamic Web Lab
Back to insights

How to add facebook likebox in wordpress post or page using shortcode

April 4, 20242 min read

If you want to show your facebook fanpage likebox in wordpress post or page then copy and past the code below in your theme function.php

You can change the attribute of the facebook like box

  • width - the width of the plugin in pixels. Default width: 300px.
  • height - the height of the plugin in pixels.
  • colorscheme - the color scheme for the plugin. Options: 'light', 'dark'
  • show_faces - specifies whether or not to display profile photos in the plugin. Default value: true.
  • stream - specifies whether to display a stream of the latest posts from the Page's wall
  • header - specifies whether to display the Facebook header at the top of the plugin.
  • border_color - the border color of the plugin.
And also past this code after the tag in your header.php theme file

Then use this shortcode to show facebook fanpage on page or post


Need Help with Your Digital Presence?

At Dynamic Web Lab, we specialize in building fast, scalable websites and applications for businesses across the UAE and beyond.

Whether you need a WordPress website, a custom Next.js application, or AI-powered solutions, our team is ready to help.

Written by

Dynamic Web Lab Editorial

We share how we design, engineer, and scale digital products across the GCC, Europe, and the US.

Share this article

Need help implementing this?

We turn these playbooks into shipped features. Let us scope your roadmap and support your team.

Start a project conversation
UAE PDPL
SOC 2 Type II
GDPR
FTA Ready
CCPA