Adding script to Astra child theme
-
Hi, I am trying to add two script to child theme’s function.php, but it doesn’t work. Can you tell me is this code good?
function wps_adding_scripts() { wp_enqueue_script( 'particles','https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js', array('jquery'), true); wp_enqueue_script( 'app', get_template_directory_uri() . 'assets/script.js', array('jquery'), true); } add_action( 'wp_enqueue_scripts', 'wps_adding_scripts' );
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Adding script to Astra child theme’ is closed to new replies.