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.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.