[Resolved] Adding js Script to Theme Footer

Home Forums Support [Resolved] Adding js Script to Theme Footer

Home Forums Support Adding js Script to Theme Footer

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #399191
    Jamie

    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

    #399217
    David
    Staff
    Customer Support

    Just use GP Hooks (its part of the GP Premium add-ons):
    Dashboard > Appearance > GP Hooks > Footer Hook.

    https://docs.generatepress.com/article/hooks-overview/

    #399218
    Jamie

    @David – Good suggestion, aye. I was just following Apples instruction on how to add the script.

    Hmmm.

    #399228
    Leo
    Staff
    Customer Support

    David is right. wp_footer is what you are looking for: https://docs.generatepress.com/article/wp_footer/.

    #399674
    Jamie

    Thanks guys!

    #399713
    Leo
    Staff
    Customer Support

    Glad we could help!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.