Is the code you posted above your son.php snippet? Then that just does not make sense, because you add footer and header in your template again … The references to the js and css file should go into the header, the script into your footer right before the closing body tag.
Additionally to what has been written before, you should use the css() and js() helpers to make sure the URLs to the files are absolute and always correct:
I added the helpers but that did not help. I tried changing my link references for the css and js to the full url instead of absolute which is not something I like to do but for some reason that seemed to fix it. The JS is now showing but it’s not positioned correctly. It’s all the way to the left instead of being in the body center where my kirby-text is.
I also took the suggestion from “texnixe” and removed the header from the snippet and then added the references to the js and css file to the header that the template is using.
I suspect the positioning issue I am having is coming from the css that the JS is using so I will look at that. Let me know if you think its something else.
At a glance it looks like your files are not linked correctly.
Also you don’t have the right content in the right files.
It’s more a problem with structure than the code itself.
You have 2 files named json.php, that could lead to confusion. Try to avoid that.
If the jsoneditor.min.js file needs to be loaded before creating: new JSONEditor(), you might need to keep that JS link in the header, not in the footer