Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress enqueue script on page

function my_enqueue_stuff() {
  if ( is_page( 'landing-page-template-one' ) ) {
    /** Call landing-page-template-one enqueue */
  } else {
    /** Call regular enqueue */
  }
}
add_action( 'wp_enqueue_scripts', 'my_enqueue_stuff' );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wordpress #enqueue #script #page
ADD COMMENT
Topic
Name
8+4 =