How to add Javascript to Footer Of Posts?

Hi there. I have a website on discourse and i am going to use Schema Markups on my posts. Does anyone knows how to add javascript in headers of Posts on discourse or is there any plugin which can help me out in putting it in header just like Wordpress has “Header and Footer Script” Plugin.

Have you looked at Developer’s guide to Discourse Themes or Theme Developer Quick Reference Guide?

Yes I did. But I was not able to understand that. So came here with a new post for a quick and precise answer. Thanks!

You can add stuff to the head in a theme component, as those guides describe. But having the code get fired where and when you want is another issue.

But that’ll just get the javascript loaded, or maybe that’s all you need.

You might say more about what it is you are trying to do rather than describing your proposed solution.

1 Like