How do I insert javascript into the footer?

javascript

(Noah) #1

I try inserting javascript into the footer using the footer option but it doesn’t render it. What am I doing wrong?


Javascript inserted into Footer from Discourse UI not working
(Dean Taylor) #2

Make sure you have ticked the little Enabled? box:


(Noah) #3

I’ve tried that, it still doesn’t work.


(Dean Taylor) #4

In that case are you adding the code inside <script>code here</script> tags?


(Kane York) #5

Also, check your browser developer for script errors. @Noahqw


(Spooky) #6

Exactly my problem. The Javascript won’t run because it is inserted withiin a script and therefore the script won’t run because. It only works in and , but not in FOOTER or HEAD.