Home › Forums › Support › How to add JS and CSS to GP This topic has 6 replies, 4 voices, and was last updated 6 years, 11 months ago by Tom. Viewing 7 posts - 1 through 7 (of 7 total) Author Posts February 29, 2016 at 1:47 pm #176151 Chad How can I add JS and CSS to GP the correct way? I tried dropping the directory with the files in the GP theme folder, then add a link in the GP hooks wp_footer, but that didn’t work. Thanks, -Chad February 29, 2016 at 2:20 pm #176152 Chad Well actually, I just need to know about the js files. I know what to do with css. Thanks, -Chad February 29, 2016 at 10:08 pm #176196 TomLead Developer Lead Developer Hi Chad, One way is to use a child theme and then enqueue the script using the wp_enqueue_script() function. Another way is to upload your script using the Media Library and grab the File URL. Then go to “Appearance > GP Hooks” and add it to the wp_footer hook: <script type='text/javascript' src='URL TO YOUR SCRIPT'></script> March 1, 2016 at 3:35 am #176269 Chad Biggs Thank you! -Chad March 1, 2016 at 11:35 am #176375 TomLead Developer Lead Developer No problem 🙂 April 27, 2017 at 9:01 am #311066 Jay Hi Tom, I tried this method (adding media file to footer hook) and it doesn’t seem to be working. Any thoughts (other than I am an idiot?) Jay April 27, 2017 at 9:11 pm #311290 TomLead Developer Lead Developer What exactly did you add into the hook? Author Posts Viewing 7 posts - 1 through 7 (of 7 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In