Answers for "load js on only specific page wp"

0

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 );
}
Posted by: Guest on September-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language