Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Last active December 21, 2015 13:28
Show Gist options
  • Save dbernar1/6312616 to your computer and use it in GitHub Desktop.
Save dbernar1/6312616 to your computer and use it in GitHub Desktop.
add_action( 'wp_enqueue_scripts', 'my_pjn_scripts_and_styles');
function my_pjn_scripts_and_styles() {
if ( is_page( 'some-page-slug' ) ) {
wp_enqueue_script(
$handle = 'googlemap',
$src = "http://maps.googleapis.com/maps/api/js?sensor=true",
$deps = array(),
$ver = 'V3',
$in_footer = true
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment