correct path for enqueue script in WordPress

Is your second WordPress installation accessible using URL? If yes then you can use the following tricks add_action(‘wp_enqueue_scripts’, ‘op_enqueue_scripts’); function op_enqueue_scripts() { wp_enqueue_script( ‘my-script-from-2nd-site’, ‘http://my-second-wp-installation.com/members/user.js’, array( ‘jquery’ ), ‘1.0’, true ); }

How to enqueue a script on a specific URL that contains multiple parts

is_page() accepts only one optional parameter $page which should be (int|string|array) representing Page ID, title, slug, or array of such. On a standard WP installation your code should look like this. add_action( ‘wp_enqueue_scripts’, ‘enqueue_date_picker_styles_and_scripts’, 101); function enqueue_date_picker_styles_and_scripts() { if ( is_page(‘page-slug-here’) ) { // Replace page-slug-here with slug of page at races/community/add wp_enqueue_style(‘bootstrap-datepicker-css’, ‘//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/css/bootstrap-datepicker.standalone.css’); wp_enqueue_script(‘bootstrap-datepicker-js’, … Read more