Adding Javascript to footer

Posted in: Newspaper
Post count: 20

Hi all

I need to add some javascript to the footer. Is it better to do it directly to footer.php or function.php?

Also, I am not sure of coding. Do I just add the JS to either or is there some syntax I need to add?

Thanks in advance

Post count: 22421

Hello,

You cannot implement a code without knowing where to add it. The code provider should be the one to tell you where the code should be added.
I can suggest our theme’s custom js box: https://www.screencast.com/t/XCNhlDg2

Thanks.

Post count: 20

So very true. That’s why I asked because I don’t see </footer> here:

WordPress

Appearance | Editor | Under Templates click on Footer | Find the </footer> tag and add your Auto Link Maker code above it | Update File

Thanks

Post count: 22421

Ok,

The footer tag is located in the post template files. Here are all the references of the footer tag in our theme:
https://www.screencast.com/t/TezKnIavPuhttps://www.screencast.com/t/JhjaaElBiht

Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.