Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

load js on only specific page wp

if( is_page( array( 'about-us', 'contact', 'management' ) ) ){
  wp_enqueue_script( 'script-name', 'path/to/example.js', array(), '1.0.0', true );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #load #js #specific #page #wp
ADD COMMENT
Topic
Name
8+1 =