Where do I add a javascript link? (trying to create sortable table)
-
Hello everyone [newbie alert!]-
I’m learning WP by basing my theme on WhitespaceI have added some javascript for a sortable table to my site (from https://yoast.com/articles/sortable-table/), and then I added a link to a head-section.
I think I am probably putting the codes in the wrong spots or modifying incorrectly – I am trying to figure out where to put the head-section. If it belongs in home.php, page.php or somewhere else.
For now I tried adding it to page.php (Page Template) by just typing<head> <script src="sortable_us.js" type="text/javascript"></script> </head>
but still am not having any luck.
The page I am trying to get working is
https://criticalgolf.com/?page_id=83Any advice would be great. Thanks!
J
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Where do I add a javascript link? (trying to create sortable table)’ is closed to new replies.