I tried to use the code below in version 4.0 of my wordpress and you can not load the file you wish only a specific page. Is there any way to do this with other code?
The plugin in question is the Multi-column Tag Map
function wpa_scripts() {
// if this is not the contact page, remove the script
if( ! is_page( '' ) ){
wp_dequeue_script('');
}
}
// adjust priority to make sure this runs after the plugins add their scripts/styles
add_action( 'wp_enqueue_scripts', 'wpa_scripts', 100 );
!
operator.if( ! is_page( '' ) )
means in plain English, if we are not on a page, then do something. You would want to change this toif( is_page( 'PAGE_ID' ) )
which means if we are on page PAGE_ID, do something