I need to add a java script file to the metric theme for call tracking software that this client uses. I am wondering about the best way to add it. This is what I was thinking of doing in the Genesis >theme settings>wp_head() I would add
On the server in my wp-content/uploads directory I would create a folder called callookups that I place the js/lookup.js
I think this would work but looking for some advice before I do it so I don't do something thats going to cause a huge problem I am not thinking about on the site.
As always any help is greatly appreciated- If there is a better way to do this let me know
** I still have not really mastered hooks but think this might be something that could be done with that, am I on the right track with that thinking?
I would enqueue:
Thanks for the reply-
So I used enqueue- and added an action hook to my functions php file for that-
If I look at my source code on the site do you know if I would see the js referenced there.
I am wondering if I added the enqueue correctly ( site seems to be working correctly )
I was thinking, or rather hoping that I would see some kind of reference to the js file I added using
enqueue referenced in the header tag , and I don't.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!