We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to add a javascript code to the header from within a plugin | Forum

Topic location: Forum home » Support » General Questions
Nirmalya Ghosh
Nirmalya Ghosh Jan 3 '14
Hello,


I'm developing a plugin. However, I need a little help here. I want to add a Javascript code the <head> </head> tags. How can I do this from a plugin?


I think it can be done from the init.php but can anybody assist me what code to put there so that it appears in between the <head> </head> tags.


Thank you. 

Joey
Joey Jan 4 '14
Look for thml.document.html in your themefolder / masterpage
Nirmalya Ghosh
Nirmalya Ghosh Jan 4 '14
i mean, how can i do it from a plugin which i'm making.
The Forum post is edited by Nirmalya Ghosh Jan 4 '14
Joey
Joey Jan 4 '14
ah like that. Sorry, i dont know how to do this.