Docs    Facebook    Troubleshooting

The plugin’s CSS and JavaScript files aren’t being included in my page

If your Custom Facebook Feed appears to be unstyled or none of the interactive elements in the feed are working (comments box isn’t opening, lightbox isn’t working, etc) then it’s most likely that the plugin’s CSS and JavaScript files aren’t being correctly loaded into your page.

The most common reason for this is that your WordPress theme doesn’t include the required WordPress functions which are used by plugin’s to add their files to your page. These functions are the wp_head function – which should be in your theme’s header.php file – and the wp_footer function – which should be in your footer.php file. These functions are required by all WordPress plugins in order for them to be able to add files to your page.

To add them to your theme, just do the following:

1) Open your theme’s header.php file and add the following immediately before the closing </head> tag: <?php wp_head(); ?>

2) Open your theme’s footer.php file and add the following immediately before the closing </body> tag: <?php wp_footer(); ?>

This will then allow our plugin to add it’s CSS and JavaScript to your page.

support

Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?