- Timestamp:
- 09/12/2023 12:04:15 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r56526 r56556 368 368 369 369 if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) { 370 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', array( 'in_footer' => true ) ); 370 wp_enqueue_script( 371 'twentyfourteen-slider', 372 get_template_directory_uri() . '/js/slider.js', 373 array( 'jquery' ), 374 '20150120', 375 array( 376 'in_footer' => false, // Because involves header. 377 'strategy' => 'defer', 378 ) 379 ); 371 380 wp_localize_script( 372 381 'twentyfourteen-slider', … … 379 388 } 380 389 381 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230526', array( 'in_footer' => true ) ); 390 wp_enqueue_script( 391 'twentyfourteen-script', 392 get_template_directory_uri() . '/js/functions.js', 393 array( 'jquery' ), 394 '20230526', 395 array( 396 'in_footer' => false, // Because involves header. 397 'strategy' => 'defer', 398 ) 399 ); 382 400 } 383 401 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
Note: See TracChangeset
for help on using the changeset viewer.