Archived topic
Adding js Script to Theme Footer
5 replies · Started by enviedbymost on October 7, 2017
Hey guys,
I'm looking to add a custom js script provided by Apple (https://autolinkmaker.itunes.apple.com/) to the footer of my site.
I'm getting here via Appearance > Editor > Theme Footer (footer.php).
Would you please be able to advise where the best place to put the script is?
Outside of the <html> tag? Just before the </body> tag?
Would really appreciate your feedback! Don't wanna break the site haha.
Thxxx
Just use GP Hooks (its part of the GP Premium add-ons):
Dashboard > Appearance > GP Hooks > Footer Hook.
@David - Good suggestion, aye. I was just following Apples instruction on how to add the script.
Hmmm.
David is right. wp_footer is what you are looking for: https://docs.generatepress.com/article/wp_footer/.
Thanks guys!
Glad we could help!