Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1809742
Placing code in a footer area
Closed

Comments

  • chirpie started the conversation

    My analytic tracking platform is asking for their javascript code to be placed as close to the end of the page (footer) as possible. As best as I can tell, there's no place other than "appearance / theme options / general / advanced / Custom JS" to place the code.

    Is there a recommended method for adding javascript to as close to the </body> tag as possible? Thanks!

  •  7,280
    Oliver replied

    Hi,

    You need to edit template:

    /wp-content/themes/thegem/footer.php

    Add your code after the line 94.

    For the safety feature updates copy this file to the main folder of the child theme before the editing.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver