adding script to section
-
Hello,
I need to add a new js script to my child theme. Since it needs to be located in the <head> and used for a specific page, i was wondering if somebody could show what kind of action I need to add in my functions file. Everything else is in the right place (js locations, classes, html)
I think it should be something like this, but it needs to point to a specific page ID, but I am not a programmer:add_action('wp_head','my_equalHeight',1,20); function my_equalHeight() { ?> (<script src="equalHeight.min.js"></script>) <?php }
Thank you and compliments for a very versatile theme, Massimo
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘adding script to section’ is closed to new replies.