Advertisement
rAthus

[WordPress] call JavaScript file (custom JS)

Oct 13th, 2020 (edited)
2,122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. /*********************************\
  2. |* appel des javascripts customs *|
  3. \*********************************/
  4.  
  5. function akn_enqueue_scripts() {
  6.     wp_enqueue_script('script-rathus', get_stylesheet_directory_uri().'/js/rAthus.js', array('jquery'), false, true);
  7. }
  8. add_action('wp_enqueue_scripts', 'akn_enqueue_scripts');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement