Okay
  Public Ticket #763821
Java and php
Closed

Comments

  • Brittany started the conversation

    I am trying to eliminate as many plugins as possible given the long load times I have been experiencing.  In doing this, I need to add some js to the site and came across a number or articles that said it should not be put in the header or footer file anymore, but given a spot in functions.php to avoid plugin conflicts etc.

    I'm just not quite sure how to do this.  Any help would be much appreciated as my old theme had a spot for putting js just like this.

    Here's what Pinterest says:

    1)  they give you the code to pop on the widget or page

    2) Don't forget to include pinit.js once (and only once) per page!

    <script async defer src="//assets.pinterest.com/js/pinit.js"></script>

    Can you help me with where to put this and how?  Thanks!


  •  8,994