// Register Script function belife_scripts() { wp_deregister_script( 'modernizr' ); wp_register_script( 'modernizr', '/wp-content/themes/belife/plugins/modernizr.custom.js', false, '1.0', true ); wp_enqueue_script( 'modernizr' ); wp_deregister_script( 'bootstrap' ); wp_register_script( 'bootstrap', '/wp-content/themes/plugins/bootstrap/js/bootstrap.min.js', false, '1.0', true ); wp_enqueue_script( 'bootstrap' ); wp_deregister_script( 'bootstrap-select' ); wp_register_script( 'bootstrap-select', '/wp-content/themes/plugins/bootstrap-select/bootstrap-select.min.js', false, '1.0', true ); wp_enqueue_script( 'bootstrap-select' ); } add_action( 'wp_enqueue_scripts', 'belife_scripts' );