Docs    Facebook    Customizations

Using Custom JavaScript code in our plugins

To use Custom JavaScript snippets in our plugins, we recommend using the following approach:

1. Install the Insert Headers and Footers plugin by WPBeginner. You can do this by going to your WordPress “Plugins” page, clicking “Add New”, and searching for the plugin name.

2. Once installed and activated, in your WordPress menu go to Settings > Insert Headers and Footers.

3. Use the following format to add your Custom JavaScript snippet into the “Scripts in Footer” of the Insert Headers and Footers settings page.

<!-- Custom Facebook Feed JS -->
<script type="text/javascript">
function cff_custom_js($){
  var $ = jQuery;
  //Add your Custom JavaScript here
}
cff_custom_js($);
</script>

See the screenshot below for an example:

Technical Support

Still have questions? We are here to help you succeed.

Open a support ticket