Docs    Facebook    Documentation

Dequeing the plugin files

To dequeue the files for each of the plugins, add the following to your plugin’s functions.php file. Make sure they’re placed within PHP tags: <?php ..script here.. ?>

// Custom Facebook Feed:
add_action( 'wp_enqueue_scripts', 'cff_remove_resources', 20 );
function cff_remove_resources() {	
	wp_dequeue_style('cff');
	wp_dequeue_style('cff-font-awesome');
	wp_dequeue_script('cffscripts');
}
// Instagram Feed:
add_action( 'wp_enqueue_scripts', 'sbi_remove_resources', 20 );
function sbi_remove_resources() {	
	wp_dequeue_style('sb_instagram_styles');
	wp_dequeue_style('sb-font-awesome-css');
	wp_dequeue_script('sb_instagram_scripts');
}
// Custom Twitter Feeds:
add_action( 'wp_enqueue_scripts', 'ctf_remove_resources', 20 );
function ctf_remove_resources() {	
	wp_dequeue_style('ctf_styles');
	wp_enqueue_script('ctf_scripts');
}

To include the plugin files on specific page you’d then need to manually add the links to those CSS and JavaScript files on each page you are displaying the associated feed. For example, to include the Custom Facebook Feed files:

CSS:
<link rel='stylesheet' id='cff-css' href='//yourwebsite.com/wp-content/plugins/custom-facebook-feed-pro/css/cff-style.css' type='text/css' media='all' />
<link rel='stylesheet' id='cff-font-awesome-css' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' type='text/css' media='all' />

JavaScript:
<script src="//yourwebsite.com/wp-content/plugins/custom-facebook-feed-pro/js/cff-scripts.js" type="text/javascript">

Technical Support

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

Open a support ticket