Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

load js on only homepage wp

if( is_front_page() ){
  wp_enqueue_script( 'script-name', 'path/to/example.js', array(), '1.0.0', true );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #load #js #homepage #wp
ADD COMMENT
Topic
Name
7+1 =