Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_enqueue_scripts', 'load_myjs' );
- function load_myjs() {
- if( is_page('your-page') ){
- wp_register_script('load_my_js',get_template_directory_uri().'/yourjsfilename.js', array('jquery'),'1.1',true);
- wp_enqueue_script('load_my_js');
- }
- }
Add Comment
Please, Sign In to add comment